Skip to content

EditUserTrait ​

Type
Trait
Namespace
craft\controllers
Implemented by
craft\controllers\UsersController
Since
5.1.0

Trait EditUserTrait

View source

Protected Methods ​

MethodDescription
asEditUserScreen()Prepares the response for a user management screen.
editedUser()Returns the user being edited.

asEditUserScreen() ​

Prepares the response for a user management screen.

View source

Arguments ​

Returns ​

yii\web\Response

Throws ​

editedUser() ​

Returns the user being edited.

View source

Arguments ​

  • $userId (integer, null) – The user’s ID, if specified in the request URI

Returns ​

craft\elements\User

Throws ​