Skip to content

Kirby 5.0.4

$structure->not()

Returns a Collection without the given element(s)

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

Parameters

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

Return type

Kirby\Cms\Structure

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

Parent class

Kirby\Cms\Structure inherited from Kirby\Cms\Collection