$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 | string ornull |
null
|
Return types
Kirby\Cms\File
ornull
This method modifies the existing $hasfiles
object it is applied to and returns it again.
Parent class
Kirby\Cms\HasFiles