$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
Since 3.4.3
You can also use an array of ids, collections or objects or a mixture of them to exclude from a collection: