$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 | stringornull |
null
|
Return types
Kirby\Cms\Fileornull
This method modifies the existing $user object it is applied to and returns it again.