$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
This method does not modify the existing $collection object but returns a new object with the changes applied. Learn more →