Skip to content

Kirby 4.5.0

$user->nameOrEmail()

Returns the user's name or, if empty, the email address

$user->nameOrEmail(): Kirby\Content\Field

Return type

Kirby\Content\Field

Parent class

Kirby\Cms\User