$appUsers->user()
Returns a specific user by id or the current user if no id is given
$appUsers->user(string|null $id = null, bool $allowImpersonation = true): Kirby\Cms\User|null
Parameters
Name | Type | Default | Description |
---|---|---|---|
$id | string ornull |
null
|
|
$allowImpersonation | bool |
true
|
If set to false, only the actually logged in user will be returned (when $id is passed as null ) |
Return types
Kirby\Cms\User
ornull
This method modifies the existing $appusers
object it is applied to and returns it again.
Parent class
Kirby\Cms\AppUsers