Search for removeRole

  1. Search 7.x for removeRole
  2. Search 9.5.x for removeRole
  3. Search 10.3.x for removeRole
  4. Search 11.x for removeRole
  5. Other projects
Title Object type File name Summary
RemoveRoleUser class core/modules/user/src/Plugin/Action/RemoveRoleUser.php Removes a role from a user.
RemoveRoleUser.php file core/modules/user/src/Plugin/Action/RemoveRoleUser.php
RemoveRoleUser::execute function core/modules/user/src/Plugin/Action/RemoveRoleUser.php Executes the plugin.
RemoveRoleUserTest class core/modules/user/tests/src/Unit/Plugin/Action/RemoveRoleUserTest.php @coversDefaultClass \Drupal\user\Plugin\Action\RemoveRoleUser
@group user
RemoveRoleUserTest.php file core/modules/user/tests/src/Unit/Plugin/Action/RemoveRoleUserTest.php
RemoveRoleUserTest::testExecuteRemoveExistingRole function core/modules/user/tests/src/Unit/Plugin/Action/RemoveRoleUserTest.php Tests the execute method on a user with a role.
RemoveRoleUserTest::testExecuteRemoveNonExistingRole function core/modules/user/tests/src/Unit/Plugin/Action/RemoveRoleUserTest.php Tests the execute method on a user without a specific role.
User::removeRole function core/modules/user/src/Entity/User.php Remove a role from a user.
UserInterface::removeRole function core/modules/user/src/UserInterface.php Remove a role from a user.
UserRolesAssignmentTest::testAssignAndRemoveRole function core/modules/user/tests/src/Functional/UserRolesAssignmentTest.php Tests that a user can be assigned a role and that the role can be removed
again.

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.