$page->file()
Returns a specific file by filename or the first one
Parameters
Name | Type | Default |
---|---|---|
$filename | string |null |
null |
$in | string |
'files' |
Return type
Kirby\Cms\File
|null
Returns a specific file by filename or the first one
Name | Type | Default |
---|---|---|
$filename | string |null |
null |
$in | string |
'files' |
Kirby\Cms\File
|null