Skip to content

Kirby 5.3.0

$lazyCollection->remove()

Removes an object

$lazyCollection->remove(string|TValue $key): Kirby\Cms\LazyCollection

Parameters

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

Return type

Kirby\Cms\LazyCollection

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

Parent class

Kirby\Cms\LazyCollection inherited from Kirby\Cms\Collection