Skip to content

Kirby 4.4.1

$user->file()

Returns a specific file by filename or the first one

$user->file(?string $filename = null, string $in = 'files'): Kirby\Cms\File|null

Parameters

Name Type Default
$filename string|null null
$in string 'files'

Return type

Kirby\Cms\File|null

Parent class

Kirby\Cms\User