Skip to content

Kirby 4.1.2

$useractions->changeRole()

Changes the user role

$useractions->changeRole(string $role): Kirby\Cms\UserActions

Parameters

Name Type Default
$role * string

Return type

Kirby\Cms\UserActions

This method does not modify the existing $useractions object but returns a new object with the changes applied. Learn more →

Parent class

Kirby\Cms\UserActions