Skip to content

Kirby 3.9.8

UserRules::changeName()

Validates if the name can be changed

UserRules::changeName(Kirby\Cms\User $user, string $name): bool

Parameters

Name Type Default
$user * Kirby\Cms\User
$name * string

Return type

bool

Exceptions

Type Description
Kirby\Exception\PermissionException If the user is not allowed to change the name

Parent class

Kirby\Cms\UserRules