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 11.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
AccessRoleTest class core/modules/user/tests/src/Functional/Views/AccessRoleTest.php Tests views role access plugin.
AccessRoleTest.php file core/modules/user/tests/src/Functional/Views/AccessRoleTest.php
AccessRoleTest::$defaultTheme property core/modules/user/tests/src/Functional/Views/AccessRoleTest.php The theme to install as the default for testing.
AccessRoleTest::$testViews property core/modules/user/tests/src/Functional/Views/AccessRoleTest.php Views used by this test.
AccessRoleTest::setUp function core/modules/user/tests/src/Functional/Views/AccessRoleTest.php Sets up the test.
AccessRoleTest::testAccessRole function core/modules/user/tests/src/Functional/Views/AccessRoleTest.php Tests role access plugin.
AccessRoleTest::testRenderCaching function core/modules/user/tests/src/Functional/Views/AccessRoleTest.php Tests access on render caching.
AccessRoleUITest class core/modules/user/tests/src/Functional/AccessRoleUITest.php Tests views role access plugin UI.
AccessRoleUITest.php file core/modules/user/tests/src/Functional/AccessRoleUITest.php
AccessRoleUITest::$defaultTheme property core/modules/user/tests/src/Functional/AccessRoleUITest.php The theme to install as the default for testing.
AccessRoleUITest::$modules property core/modules/user/tests/src/Functional/AccessRoleUITest.php Modules to install.
AccessRoleUITest::$testViews property core/modules/user/tests/src/Functional/AccessRoleUITest.php Views used by this test.
AccessRoleUITest::setUp function core/modules/user/tests/src/Functional/AccessRoleUITest.php Sets up the test.
AccessRoleUITest::testAccessRoleUI function core/modules/user/tests/src/Functional/AccessRoleUITest.php Tests the role access plugin UI.
AccessTestBase::$normalRole property core/modules/user/tests/src/Functional/Views/AccessTestBase.php Contains a role ID that is used by the normalUser.
AccessTestBase::$webRole property core/modules/user/tests/src/Functional/Views/AccessTestBase.php Contains a role ID that is used by the webUser.
access_check.user.role service core/modules/user/user.services.yml Drupal\user\Access\RoleAccessCheck
access_policy.user_roles service core/core.services.yml Drupal\Core\Session\UserRolesAccessPolicy
AccountInterface::ANONYMOUS_ROLE constant core/lib/Drupal/Core/Session/AccountInterface.php Role ID for anonymous users.
AccountInterface::AUTHENTICATED_ROLE constant core/lib/Drupal/Core/Session/AccountInterface.php Role ID for authenticated users.
AccountInterface::getRoles function core/lib/Drupal/Core/Session/AccountInterface.php Returns a list of roles.
AccountProxy::getRoles function core/lib/Drupal/Core/Session/AccountProxy.php
AccountProxy::hasRole function core/lib/Drupal/Core/Session/AccountProxy.php Whether a user has a certain role.
AccountProxyTest::testHasRole function core/tests/Drupal/Tests/Core/Session/AccountProxyTest.php @covers ::hasRole
AccountSettingsForm::$roleStorage property core/modules/user/src/AccountSettingsForm.php The role storage used when changing the admin role.
AddRoleUser class core/modules/user/src/Plugin/Action/AddRoleUser.php Adds a role to a user.
AddRoleUser.php file core/modules/user/src/Plugin/Action/AddRoleUser.php
AddRoleUser::execute function core/modules/user/src/Plugin/Action/AddRoleUser.php Executes the plugin.
AddRoleUserTest class core/modules/user/tests/src/Unit/Plugin/Action/AddRoleUserTest.php @coversDefaultClass \Drupal\user\Plugin\Action\AddRoleUser
@group user
AddRoleUserTest.php file core/modules/user/tests/src/Unit/Plugin/Action/AddRoleUserTest.php
AddRoleUserTest::testExecuteAddExistingRole function core/modules/user/tests/src/Unit/Plugin/Action/AddRoleUserTest.php Tests the execute method on a user with a role.
AddRoleUserTest::testExecuteAddNonExistingRole function core/modules/user/tests/src/Unit/Plugin/Action/AddRoleUserTest.php Tests the execute method on a user without a specific role.
AnonymousUserSessionTest::testUserGetRoles function core/tests/Drupal/Tests/Core/Session/AnonymousUserSessionTest.php Tests the method getRoles exclude or include locked roles based in param.
Block::$blockRoleTable property core/modules/block/src/Plugin/migrate/source/Block.php Table mapping blocks to user roles.
Block::$userRoleTable property core/modules/block/src/Plugin/migrate/source/Block.php Table listing user roles.
BlockCacheTest::testCachePerRole function core/modules/block/tests/src/Functional/BlockCacheTest.php Tests "user.roles" cache context.
BlockContentAccessHandlerTest::$role property core/modules/block_content/tests/src/Kernel/BlockContentAccessHandlerTest.php The test role.
BlockTest::testBlockUserRoleDelete function core/modules/block/tests/src/Functional/BlockTest.php Tests block_user_role_delete.
block_user_role_delete function core/modules/block/block.module Implements hook_ENTITY_TYPE_delete() for user_role entities.
CacheContextOptimizationTest::testUserRolesCacheContextOptimization function core/tests/Drupal/KernelTests/Core/Cache/CacheContextOptimizationTest.php Ensures that 'user.roles' still works when it is optimized away.
cache_context.user.roles service core/core.services.yml Drupal\Core\Cache\Context\UserRolesCacheContext
ChangeUserRoleBase class core/modules/user/src/Plugin/Action/ChangeUserRoleBase.php Provides a base class for operations to change a user's role.
ChangeUserRoleBase.php file core/modules/user/src/Plugin/Action/ChangeUserRoleBase.php
ChangeUserRoleBase::$entityType property core/modules/user/src/Plugin/Action/ChangeUserRoleBase.php The user role entity type.
ChangeUserRoleBase::access function core/modules/user/src/Plugin/Action/ChangeUserRoleBase.php Checks object access.
ChangeUserRoleBase::buildConfigurationForm function core/modules/user/src/Plugin/Action/ChangeUserRoleBase.php Form constructor.
ChangeUserRoleBase::calculateDependencies function core/modules/user/src/Plugin/Action/ChangeUserRoleBase.php Calculates dependencies for the configured plugin.
ChangeUserRoleBase::create function core/modules/user/src/Plugin/Action/ChangeUserRoleBase.php Creates an instance of the plugin.
ChangeUserRoleBase::defaultConfiguration function core/modules/user/src/Plugin/Action/ChangeUserRoleBase.php Gets default configuration for this plugin.
ChangeUserRoleBase::submitConfigurationForm function core/modules/user/src/Plugin/Action/ChangeUserRoleBase.php Form submission handler.

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