Skip to content

Kirby 3.9.8

new User()

Creates a new User object

new User(array $props)

Parameters

Name Type Default
$props * array

For the $props parameter, you pass an array with the following data, which will be used to set up the Kirby\Cms\User object:

Name Type Description
blueprint array Sets the Blueprint object
content array Sets the Content object
email string Sets the user email
files array Sets the Files collection
id string Sets the user id
language string Sets the user language
name string Sets the user name
password string Sets the user's password hash
role string Sets the user role
translations array Create the translations collection from an array

Parent class

Kirby\Cms\User