$pages->not()
Returns a Collection without the given element(s)
Name |
Type |
Default |
Description |
... $keys |
mixed |
null |
any number of keys, passed as individual arguments |
Kirby\Cms\Collection
Kirby\Cms\Pages
inherited from Kirby\Cms\Collection
Note that you have to pass the full id
as parameter:
You can pass a collection as argument as well:
You can also use an array of ids, collections or objects or a mixture of them to exclude from a collection:
An array of ids
An array of objects
An array of mixed values