Skip to content

Kirby 5.0.1

$items->not()

Returns a Collection without the given element(s)

$items->not(string|array|object ...$keys): Kirby\Cms\Items

Parameters

Name Type Default Description
...$keys stringorarrayorobject no default value any number of keys,
passed as individual arguments

Return type

Kirby\Cms\Items

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

Parent class

Kirby\Cms\Items inherited from Kirby\Cms\Collection