Skip to content

Kirby 5.1.1

$collection->remove()

Removes an object

$collection->remove(string|TValue $key): Kirby\Cms\Collection

Parameters

Name Type Default Description
$keyrequired stringorTValue no default value the name of the key

Return type

Kirby\Cms\Collection

This method does not modify the existing $collection object but returns a new object with the changes applied. Learn more →

Parent class

Kirby\Cms\Collection