Search for roles
Exact matches
| Title | Object type | File name | Summary |
|---|---|---|---|
| Roles | class | core/ |
Field handler to provide a list of roles. |
| Roles | class | core/ |
Filter handler for user roles. |
All search results
| Title | Object type | File name | Summary |
|---|---|---|---|
| UserRolesAccessPolicyTest::$entityTypeManager | property | core/ |
The mocked entity type manager service. |
| UserRolesAccessPolicyTest::calculatePermissionsProvider | function | core/ |
Data provider for testCalculatePermissions. |
| UserRolesAccessPolicyTest::setUp | function | core/ |
|
| UserRolesAccessPolicyTest::testAlterPermissions | function | core/ |
Tests the alterPermissions method. |
| UserRolesAccessPolicyTest::testApplies | function | core/ |
@covers ::applies[[api-linebreak]] |
| UserRolesAccessPolicyTest::testCalculatePermissions | function | core/ |
Tests the calculatePermissions method. |
| UserRolesAccessPolicyTest::testGetPersistentCacheContexts | function | core/ |
Tests the getPersistentCacheContexts method. |
| UserRolesAssignmentTest | class | core/ |
Tests that users can be assigned and unassigned roles. |
| UserRolesAssignmentTest.php | file | core/ |
|
| UserRolesAssignmentTest::$defaultTheme | property | core/ |
The theme to install as the default for testing. |
| UserRolesAssignmentTest::setUp | function | core/ |
|
| UserRolesAssignmentTest::testAssignAndRemoveRole | function | core/ |
Test that user can be assigned role and that the role can be removed again. |
| UserRolesAssignmentTest::testCreateUserWithRole | function | core/ |
Tests assigning a role at user creation and removing the role. |
| UserRolesAssignmentTest::userLoadAndCheckRoleAssigned | function | core/ |
Check role on user object. |
| UserRolesCacheContext | class | core/ |
Defines the UserRolesCacheContext service, for "per role" caching. |
| UserRolesCacheContext.php | file | core/ |
|
| UserRolesCacheContext::getCacheableMetadata | function | core/ |
Gets the cacheability metadata for the context based on the parameter value. |
| UserRolesCacheContext::getContext | function | core/ |
Returns the string representation of the cache context. |
| UserRolesCacheContext::getLabel | function | core/ |
Returns the label of the cache context. |
| UserRolesCacheContextTest | class | core/ |
@coversDefaultClass \Drupal\Core\Cache\Context\UserRolesCacheContext[[api-linebreak]] @group Cache |
| UserRolesCacheContextTest.php | file | core/ |
|
| UserRolesCacheContextTest::testCalculatedRole | function | core/ |
@covers ::getContext[[api-linebreak]] |
| UserRolesPermissionsTest | class | core/ |
Test case for getting permissions from user roles. |
| UserRolesPermissionsTest.php | file | core/ |
|
| UserRolesPermissionsTest::$modules | property | core/ |
Modules to install. |
| UserRolesPermissionsTest::setUp | function | core/ |
|
| UserRolesPermissionsTest::testPermissionChange | function | core/ |
Tests that assigning a role grants that role's permissions. |
| UserSession::$roles | property | core/ |
List of the roles this user has. |
| UserSession::getRoles | function | core/ |
Returns a list of roles. |
| UserSession::getRoleStorage | function | core/ |
Returns the role storage object. |
| UserSessionTest::testUserGetRoles | function | core/ |
Tests the method getRoles exclude or include locked roles based in param. |
| UserTest::testQueryInvolvingRoles | function | core/ |
Tests good error DX when trying to filter users by role. |
| UserTest::testUserGetRoles | function | core/ |
Tests the method getRoles exclude or include locked roles based in param. |
| user_roles | function | core/ |
Retrieve an array of roles matching specified conditions. |
| views.view.test_user_roles_rid.yml | file | core/ |
core/modules/user/tests/modules/user_test_views/test_views/views.view.test_user_roles_rid.yml |
Pagination
- Previous page
- Page 3
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.