| UserRoleEntityTest::testOrderOfPermissions |
function |
core/modules/user/tests/src/Kernel/UserRoleEntityTest.php |
|
| UserRoleEntityTest::testPermissionRevokeAndConfigSync |
function |
core/modules/user/tests/src/Kernel/UserRoleEntityTest.php |
|
| 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. |
| 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. |
| 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. |
| UserUpdateRoleDependenciesTest |
class |
core/modules/user/tests/src/Functional/Update/UserUpdateRoleDependenciesTest.php |
Tests user_post_update_update_roles() upgrade path. |
| UserUpdateRoleDependenciesTest.php |
file |
core/modules/user/tests/src/Functional/Update/UserUpdateRoleDependenciesTest.php |
|
| UserUpdateRoleDependenciesTest::setDatabaseDumpFiles |
function |
core/modules/user/tests/src/Functional/Update/UserUpdateRoleDependenciesTest.php |
Set database dump files to be used. |
| UserUpdateRoleDependenciesTest::testRolePermissions |
function |
core/modules/user/tests/src/Functional/Update/UserUpdateRoleDependenciesTest.php |
Tests that roles have dependencies and only existing permissions. |
| 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. |
| 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_names |
function |
core/modules/user/user.module |
Retrieves the names of roles matching specified conditions. |
| user_role_permissions |
function |
core/modules/user/user.module |
Determine the permissions for one or more roles. |
| user_role_revoke_permissions |
function |
core/modules/user/user.module |
Revoke permissions from a user role. |
| user_user_role_delete |
function |
core/modules/user/user.module |
Implements hook_ENTITY_TYPE_delete() for user_role entities. |
| user_user_role_insert |
function |
core/modules/user/user.module |
Implements hook_ENTITY_TYPE_insert() for user_role entities. |
| 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. |
| _user_role_permissions_update |
function |
core/modules/user/user.module |
Determine the permissions for one or more roles during update. |