Skip to content

Kirby 6.0.0

$lazyCollection->not()

Returns a Collection without the given element(s)

$lazyCollection->not(object|array|string ...$keys): LazyCollection

Parameters

Name Type Default Description
...$keys objectorarrayorstring no default value Any number of keys, objects or collections, as individual arguments or in arrays

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