Skip to content

Kirby 6.0.0

$roles->not()

Returns a Collection without the given element(s)

$roles->not(object|array|string ...$keys): Roles

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\Roles

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

Parent class

Kirby\Cms\Roles inherited from Kirby\Cms\Collection