Skip to content

Kirby 3.9.8

UserRules::validId()

Validates a user id

UserRules::validId(Kirby\Cms\User $user, string $id): bool

Parameters

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

Return type

bool

Exceptions

Type Description
Kirby\Exception\DuplicateException If the user already exists

Parent class

Kirby\Cms\UserRules