Skip to content

Kirby 6.0.0

$lazyCollection->remove()

Removes an object

$lazyCollection->remove(string|mixed $key): LazyCollection

Parameters

Name Type Default Description
$keyrequired stringormixed no default value Key or object to remove

Return type

Kirby\Cms\LazyCollection

This method modifies the existing $lazycollection object it is applied to and returns it again.

Parent class

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