$files->find()
Find one or multiple elements by id
Parameters
Name | Type | Default |
---|---|---|
... $keys | string |
null |
Return type
mixed
Parent class
Kirby\Cms\Files
inherited from Kirby\Toolkit\Collection
Example
Fetch a single file
Fetch multiple files
Note that you have to pass the file path in relation to the given page if you try to find a specific file within a pages collection.