Search for role

  1. Search 7.x for role
  2. Search 9.5.x for role
  3. Search 8.9.x for role
  4. Search 10.3.x for role
  5. Other projects

Exact matches

These are exact matches according to your search
Title Object type File name Summary
Role class core/modules/user/src/Entity/Role.php Defines the user role entity class.
Role class core/modules/user/src/Plugin/views/access/Role.php Access plugin that provides role-based access control.
Role class core/modules/user/src/Plugin/migrate/source/d6/Role.php Drupal 6 role source from database.
Role class core/modules/user/src/Plugin/migrate/source/d7/Role.php Drupal 7 role source from database.

All search results

Title Object type File name Summary
UserRolesPermissionsTest::testPermissionChange function core/tests/Drupal/KernelTests/Core/Session/UserRolesPermissionsTest.php Tests that assigning a role grants that role's permissions.
UserRoleTest class core/modules/user/tests/src/Kernel/Views/UserRoleTest.php Tests rendering when the role is numeric.
UserRoleTest.php file core/modules/user/tests/src/Kernel/Views/UserRoleTest.php
UserRoleTest::testNumericRole function core/modules/user/tests/src/Kernel/Views/UserRoleTest.php Tests numeric role.
UserSession::$roles property core/lib/Drupal/Core/Session/UserSession.php List of the roles this user has.
UserSession::getRoles function core/lib/Drupal/Core/Session/UserSession.php Returns a list of roles.
UserSession::getRoleStorage function core/lib/Drupal/Core/Session/UserSession.php Returns the role storage object.
UserSession::hasRole function core/lib/Drupal/Core/Session/UserSession.php Whether a user has a certain role.
UserSessionTest::testHasRole function core/tests/Drupal/Tests/Core/Session/UserSessionTest.php Tests the hasRole method.
UserSessionTest::testUserGetRoles function core/tests/Drupal/Tests/Core/Session/UserSessionTest.php Tests the method getRoles exclude or include locked roles based in param.
UserStorage::deleteRoleReferences function core/modules/user/src/UserStorage.php Delete role references.
UserStorageInterface::deleteRoleReferences function core/modules/user/src/UserStorageInterface.php Delete role references.
UserTest::testQueryInvolvingRoles function core/modules/jsonapi/tests/src/Functional/UserTest.php Tests good error DX when trying to filter users by role.
UserTest::testUserGetRoles function core/modules/user/tests/src/Unit/Plugin/Core/Entity/UserTest.php Tests the method getRoles exclude or include locked roles based in param.
UserUpdateRoleMigrateTest class core/modules/user/tests/src/Functional/Update/UserUpdateRoleMigrateTest.php Tests user_update_10000() upgrade path.
UserUpdateRoleMigrateTest.php file core/modules/user/tests/src/Functional/Update/UserUpdateRoleMigrateTest.php
UserUpdateRoleMigrateTest::setDatabaseDumpFiles function core/modules/user/tests/src/Functional/Update/UserUpdateRoleMigrateTest.php Set database dump files to be used.
UserUpdateRoleMigrateTest::testRolePermissions function core/modules/user/tests/src/Functional/Update/UserUpdateRoleMigrateTest.php Tests that roles have only existing permissions.
user_role_change_permissions function core/modules/user/user.module Change permissions for a user role.
user_role_grant_permissions function core/modules/user/user.module Grant permissions to a user role.
user_role_revoke_permissions function core/modules/user/user.module Revoke permissions from a user role.
views.view.test_access_role.yml file core/modules/user/tests/modules/user_test_views/test_views/views.view.test_access_role.yml core/modules/user/tests/modules/user_test_views/test_views/views.view.test_access_role.yml
views.view.test_user_roles_rid.yml file core/modules/user/tests/modules/user_test_views/test_views/views.view.test_user_roles_rid.yml core/modules/user/tests/modules/user_test_views/test_views/views.view.test_user_roles_rid.yml
views.view.test_user_role_contextual_filter.yml file core/modules/views/tests/modules/views_test_config/test_views/views.view.test_user_role_contextual_filter.yml core/modules/views/tests/modules/views_test_config/test_views/views.view.test_user_role_contextual_filter.yml
views.view.test_views_handler_field_role.yml file core/modules/user/tests/modules/user_test_views/test_views/views.view.test_views_handler_field_role.yml core/modules/user/tests/modules/user_test_views/test_views/views.view.test_views_handler_field_role.yml
ViewsConfigDependenciesIntegrationTest::testConfigRemovalRole function core/modules/views/tests/src/Kernel/ViewsConfigDependenciesIntegrationTest.php Tests removing a config dependency that deletes the View.

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