$hasfiles->image()
Returns a specific image by filename or the first one
Parameters
Name | Type | Default |
---|---|---|
$filename | string |
null |
Return type
Kirby\Cms\File
|null
Parent class
Kirby\Cms\HasFiles
Returns a specific image by filename or the first one
Name | Type | Default |
---|---|---|
$filename | string |
null |
Kirby\Cms\File
|null
Kirby\Cms\HasFiles