Search for role
Exact matches
Title | Object type | File name | Summary |
---|---|---|---|
Role | class | core/ |
Defines the user role entity class. |
Role | class | core/ |
Access plugin that provides role-based access control. |
Role | class | core/ |
Drupal 6 role source from database. |
Role | class | core/ |
Drupal 7 role source from database. |
All search results
Title | Object type | File name | Summary |
---|---|---|---|
UserRoleDeleteTest.php | file | core/ |
|
UserRoleDeleteTest::$modules | property | core/ |
Modules to install. |
UserRoleDeleteTest::setUp | function | core/ |
|
UserRoleDeleteTest::testDependenciesRemoval | function | core/ |
Tests the removal of user role dependencies. |
UserRoleDeleteTest::testRoleDeleteUserRoleReferenceDelete | function | core/ |
Tests removal of role references on role entity delete. |
UserRoleEntityTest | class | core/ |
@group user @coversDefaultClass \Drupal\user\Entity\Role |
UserRoleEntityTest.php | file | core/ |
|
UserRoleEntityTest::$modules | property | core/ |
Modules to install. |
UserRoleEntityTest::testGrantingNonExistentPermission | function | core/ |
|
UserRoleEntityTest::testOrderOfPermissions | function | core/ |
|
UserRoleEntityTest::testPermissionRevokeAndConfigSync | function | core/ |
|
UserRolesAccessPolicy | class | core/ |
Grants permissions based on a user's roles. |
UserRolesAccessPolicy.php | file | core/ |
|
UserRolesAccessPolicy::calculatePermissions | function | core/ |
Calculates the permissions for an account within a given scope. |
UserRolesAccessPolicy::getPersistentCacheContexts | function | core/ |
Gets the persistent cache contexts. |
UserRolesAccessPolicy::__construct | function | core/ |
|
UserRolesAccessPolicyTest | class | core/ |
@coversDefaultClass \Drupal\Core\Session\UserRolesAccessPolicy @group Session |
UserRolesAccessPolicyTest.php | file | core/ |
|
UserRolesAccessPolicyTest::$accessPolicy | property | core/ |
The access policy to test. |
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 |
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 @group Cache |
UserRolesCacheContextTest.php | file | core/ |
|
UserRolesCacheContextTest::testCalculatedRole | function | core/ |
@covers ::getContext |
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. |
UserRoleTest | class | core/ |
Tests rendering when the role is numeric. |
UserRoleTest.php | file | core/ |
|
UserRoleTest::testNumericRole | function | core/ |
Tests numeric role. |
UserSession::$roles | property | core/ |
List of the roles this user has. |
Pagination
- Previous page
- Page 9
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.