Search for addRole
- Search 7.x for addRole
- Search 9.5.x for addRole
- Search 10.3.x for addRole
- Search 11.x for addRole
- Other projects
Title | Object type | File name | Summary |
---|---|---|---|
AddRoleUser | class | core/ |
Adds a role to a user. |
AddRoleUser.php | file | core/ |
|
AddRoleUser::execute | function | core/ |
Executes the plugin. |
AddRoleUserTest | class | core/ |
@coversDefaultClass \Drupal\user\Plugin\Action\AddRoleUser @group user |
AddRoleUserTest.php | file | core/ |
|
AddRoleUserTest::testExecuteAddExistingRole | function | core/ |
Tests the execute method on a user with a role. |
AddRoleUserTest::testExecuteAddNonExistingRole | function | core/ |
Tests the execute method on a user without a specific role. |
User::addRole | function | core/ |
Add a role to a user. |
UserInterface::addRole | function | core/ |
Add a role to a user. |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.