Skip to content

Kirby 5.1.1

$user->nameOrEmail()

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

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

Return type

Kirby\Content\Field

This method modifies the existing $user object it is applied to and returns it again.

Parent class

Kirby\Cms\User