$files->not()
Returns a Collection without the given element(s)
Parameters
Name | Type | Default | Description |
---|---|---|---|
$keys | mixed |
null |
any number of keys, passed as individual arguments |
Return type
Parent class
Kirby\Cms\Files
inherited from Kirby\Cms\Collection
Example
Array of ids, collections or objects as argument
You can also use an array of ids, collections or objects or a mixture of them to exclude from a collection: