Search for roles

  1. Search 7.x for roles
  2. Search 8.9.x for roles
  3. Search 10.3.x for roles
  4. Search 11.x for roles
  5. Other projects

Exact matches

These are exact matches according to your search
Title Object type File name Summary
Roles class core/modules/user/src/Plugin/views/field/Roles.php Field handler to provide a list of roles.
Roles class core/modules/user/src/Plugin/views/filter/Roles.php Filter handler for user roles.

All search results

Title Object type File name Summary
RolesRid::create function core/modules/user/src/Plugin/views/argument/RolesRid.php Creates an instance of the plugin.
RolesRid::titleQuery function core/modules/user/src/Plugin/views/argument/RolesRid.php Override for specific title lookups.
RolesRid::__construct function core/modules/user/src/Plugin/views/argument/RolesRid.php Constructs a \Drupal\user\Plugin\views\argument\RolesRid object.
RolesRidArgumentTest class core/modules/user/tests/src/Functional/Views/RolesRidArgumentTest.php Tests the handler of the user: roles argument.
RolesRidArgumentTest.php file core/modules/user/tests/src/Functional/Views/RolesRidArgumentTest.php
RolesRidArgumentTest::$defaultTheme property core/modules/user/tests/src/Functional/Views/RolesRidArgumentTest.php The theme to install as the default for testing.
RolesRidArgumentTest::$modules property core/modules/user/tests/src/Functional/Views/RolesRidArgumentTest.php Modules to enable.
RolesRidArgumentTest::$testViews property core/modules/user/tests/src/Functional/Views/RolesRidArgumentTest.php Views used by this test.
RolesRidArgumentTest::testArgumentTitle function core/modules/user/tests/src/Functional/Views/RolesRidArgumentTest.php Tests the generated title of a user: roles argument.
RolesRidTest class core/modules/user/tests/src/Unit/Views/Argument/RolesRidTest.php @coversDefaultClass \Drupal\user\Plugin\views\argument\RolesRid
@group user
RolesRidTest.php file core/modules/user/tests/src/Unit/Views/Argument/RolesRidTest.php
RolesRidTest::testTitleQuery function core/modules/user/tests/src/Unit/Views/Argument/RolesRidTest.php Tests the titleQuery method.
RoleStorage class core/modules/user/src/RoleStorage.php Controller class for user roles.
RoleStorage.php file core/modules/user/src/RoleStorage.php
RoleStorage::isPermissionInRoles function core/modules/user/src/RoleStorage.php Returns whether a permission is in one of the passed in roles.
RoleStorageInterface interface core/modules/user/src/RoleStorageInterface.php Defines an interface for role entity storage classes.
RoleStorageInterface.php file core/modules/user/src/RoleStorageInterface.php
RoleStorageInterface::isPermissionInRoles function core/modules/user/src/RoleStorageInterface.php Returns whether a permission is in one of the passed in roles.
Secure::$roles property core/tests/Drupal/Tests/Component/Annotation/Doctrine/Fixtures/Annotation/Secure.php
User accounts, permissions, and roles group core/core.api.php API for user accounts, access checking, roles, and permissions.
User::getRoles function core/modules/user/src/Entity/User.php Returns a list of roles.
User::getRoleStorage function core/modules/user/src/Entity/User.php Returns the role storage object.
UserKernelTestBase::$roleStorage property core/modules/user/tests/src/Kernel/Views/UserKernelTestBase.php The entity storage for roles.
UserPermissionsForm::$roleStorage property core/modules/user/src/Form/UserPermissionsForm.php The role storage.
UserPermissionsForm::getRoles function core/modules/user/src/Form/UserPermissionsForm.php Gets the roles to display in this form.
UserPermissionsRoleSpecificForm class core/modules/user/src/Form/UserPermissionsRoleSpecificForm.php Provides the user permissions administration form for a specific role.
UserPermissionsRoleSpecificForm.php file core/modules/user/src/Form/UserPermissionsRoleSpecificForm.php
UserPermissionsRoleSpecificForm::$userRole property core/modules/user/src/Form/UserPermissionsRoleSpecificForm.php The specific role for this form.
UserPermissionsRoleSpecificForm::buildForm function core/modules/user/src/Form/UserPermissionsRoleSpecificForm.php Builds the user permissions administration form for a specific role.
UserPermissionsRoleSpecificForm::getRoles function core/modules/user/src/Form/UserPermissionsRoleSpecificForm.php Gets the roles to display in this form.
UserRolesAssignmentTest class core/modules/user/tests/src/Functional/UserRolesAssignmentTest.php Tests that users can be assigned and unassigned roles.
UserRolesAssignmentTest.php file core/modules/user/tests/src/Functional/UserRolesAssignmentTest.php
UserRolesAssignmentTest::$defaultTheme property core/modules/user/tests/src/Functional/UserRolesAssignmentTest.php The theme to install as the default for testing.
UserRolesAssignmentTest::setUp function core/modules/user/tests/src/Functional/UserRolesAssignmentTest.php
UserRolesAssignmentTest::testAssignAndRemoveRole function core/modules/user/tests/src/Functional/UserRolesAssignmentTest.php Test that user can be assigned role and that the role can be removed again.
UserRolesAssignmentTest::testCreateUserWithRole function core/modules/user/tests/src/Functional/UserRolesAssignmentTest.php Tests assigning a role at user creation and removing the role.
UserRolesAssignmentTest::userLoadAndCheckRoleAssigned function core/modules/user/tests/src/Functional/UserRolesAssignmentTest.php Check role on user object.
UserRolesCacheContext class core/lib/Drupal/Core/Cache/Context/UserRolesCacheContext.php Defines the UserRolesCacheContext service, for "per role" caching.
UserRolesCacheContext.php file core/lib/Drupal/Core/Cache/Context/UserRolesCacheContext.php
UserRolesCacheContext::getCacheableMetadata function core/lib/Drupal/Core/Cache/Context/UserRolesCacheContext.php Gets the cacheability metadata for the context based on the parameter value.
UserRolesCacheContext::getContext function core/lib/Drupal/Core/Cache/Context/UserRolesCacheContext.php Returns the string representation of the cache context.
UserRolesCacheContext::getLabel function core/lib/Drupal/Core/Cache/Context/UserRolesCacheContext.php Returns the label of the cache context.
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.
UserSessionTest::testUserGetRoles function core/tests/Drupal/Tests/Core/Session/UserSessionTest.php Tests the method getRoles exclude or include locked roles based in param.
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.
user_post_update_update_roles function core/modules/user/user.post_update.php Calculate role dependencies and remove non-existent permissions.
user_roles function core/modules/user/user.module Retrieve an array of roles matching specified conditions.

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