Reference

Guide

new User()

Creates a new User object

new User(array $props)

Parameters

Name Type Default Description
$props array

The $props parameter

Property Type Required Description
blueprint array Blueprint definition
content array Field values
email string
id string
language string
name string
password string
role string
translations array Language codes with subarrays of field values

Source code

kirby/src/Cms/User.php#L114