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 |