$user->image()
Returns a specific image by filename or the first one
$user->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 $user
object it is applied to and returns it again.