Skip to content

Kirby 5.0.4

$userActions->changeRole()

Changes the user role

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

Parameters

Name Type Default
$rolerequired string no default value

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