$hasFiles->image()
Returns a specific image by filename or the first one
$hasFiles->image(string|null $filename = null): Kirby\Cms\File|null
Parameters
| Name | Type | Default |
|---|---|---|
| $filename | stringornull |
null
|
Return types
Kirby\Cms\Fileornull
This method modifies the existing $hasfiles object it is applied to and returns it again.
Parent class
Kirby\Cms\HasFiles