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 10.3.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
UserRoleAdminTest::$modules property core/modules/user/tests/src/Functional/UserRoleAdminTest.php Modules to install.
UserRoleAdminTest::setUp function core/modules/user/tests/src/Functional/UserRoleAdminTest.php
UserRoleAdminTest::testRoleAdministration function core/modules/user/tests/src/Functional/UserRoleAdminTest.php Tests adding, renaming and deleting roles.
UserRoleAdminTest::testRoleWeightOrdering function core/modules/user/tests/src/Functional/UserRoleAdminTest.php Tests user role weight change operation and ordering.
UserRoleConditionTest class core/modules/user/tests/src/Kernel/Condition/UserRoleConditionTest.php Tests the user role condition.
UserRoleConditionTest.php file core/modules/user/tests/src/Kernel/Condition/UserRoleConditionTest.php
UserRoleConditionTest::$anonymous property core/modules/user/tests/src/Kernel/Condition/UserRoleConditionTest.php An anonymous user for testing purposes.
UserRoleConditionTest::$authenticated property core/modules/user/tests/src/Kernel/Condition/UserRoleConditionTest.php An authenticated user for testing purposes.
UserRoleConditionTest::$manager property core/modules/user/tests/src/Kernel/Condition/UserRoleConditionTest.php The condition plugin manager.
UserRoleConditionTest::$modules property core/modules/user/tests/src/Kernel/Condition/UserRoleConditionTest.php Modules to install.
UserRoleConditionTest::$role property core/modules/user/tests/src/Kernel/Condition/UserRoleConditionTest.php A custom role for testing purposes.
UserRoleConditionTest::setUp function core/modules/user/tests/src/Kernel/Condition/UserRoleConditionTest.php
UserRoleConditionTest::testConditions function core/modules/user/tests/src/Kernel/Condition/UserRoleConditionTest.php Tests the user_role condition.
UserRoleDeleteTest class core/modules/user/tests/src/Kernel/UserRoleDeleteTest.php Tests the handling of user_role entity from the user module.
UserRoleDeleteTest.php file core/modules/user/tests/src/Kernel/UserRoleDeleteTest.php
UserRoleDeleteTest::$modules property core/modules/user/tests/src/Kernel/UserRoleDeleteTest.php Modules to install.
UserRoleDeleteTest::setUp function core/modules/user/tests/src/Kernel/UserRoleDeleteTest.php
UserRoleDeleteTest::testDependenciesRemoval function core/modules/user/tests/src/Kernel/UserRoleDeleteTest.php Tests the removal of user role dependencies.
UserRoleDeleteTest::testRoleDeleteUserRoleReferenceDelete function core/modules/user/tests/src/Kernel/UserRoleDeleteTest.php Tests removal of role references on role entity delete.
UserRoleEntityTest class core/modules/user/tests/src/Kernel/UserRoleEntityTest.php @group user
@coversDefaultClass \Drupal\user\Entity\Role
UserRoleEntityTest.php file core/modules/user/tests/src/Kernel/UserRoleEntityTest.php
UserRoleEntityTest::$modules property core/modules/user/tests/src/Kernel/UserRoleEntityTest.php Modules to install.
UserRoleEntityTest::register function core/modules/user/tests/src/Kernel/UserRoleEntityTest.php Registers test-specific services.
UserRoleEntityTest::testGrantingNonExistentPermission function core/modules/user/tests/src/Kernel/UserRoleEntityTest.php
UserRoleEntityTest::testOrderOfPermissions function core/modules/user/tests/src/Kernel/UserRoleEntityTest.php
UserRoleEntityTest::testPermissionRevokeAndConfigSync function core/modules/user/tests/src/Kernel/UserRoleEntityTest.php
UserRolesAccessPolicy class core/lib/Drupal/Core/Session/UserRolesAccessPolicy.php Grants permissions based on a user's roles.
UserRolesAccessPolicy.php file core/lib/Drupal/Core/Session/UserRolesAccessPolicy.php
UserRolesAccessPolicy::calculatePermissions function core/lib/Drupal/Core/Session/UserRolesAccessPolicy.php Calculates the permissions for an account within a given scope.
UserRolesAccessPolicy::getPersistentCacheContexts function core/lib/Drupal/Core/Session/UserRolesAccessPolicy.php Gets the persistent cache contexts.
UserRolesAccessPolicy::__construct function core/lib/Drupal/Core/Session/UserRolesAccessPolicy.php
UserRolesAccessPolicyTest class core/tests/Drupal/Tests/Core/Session/UserRolesAccessPolicyTest.php @coversDefaultClass \Drupal\Core\Session\UserRolesAccessPolicy
@group Session
UserRolesAccessPolicyTest.php file core/tests/Drupal/Tests/Core/Session/UserRolesAccessPolicyTest.php
UserRolesAccessPolicyTest::$accessPolicy property core/tests/Drupal/Tests/Core/Session/UserRolesAccessPolicyTest.php The access policy to test.
UserRolesAccessPolicyTest::$entityTypeManager property core/tests/Drupal/Tests/Core/Session/UserRolesAccessPolicyTest.php The mocked entity type manager service.
UserRolesAccessPolicyTest::calculatePermissionsProvider function core/tests/Drupal/Tests/Core/Session/UserRolesAccessPolicyTest.php Data provider for testCalculatePermissions.
UserRolesAccessPolicyTest::setUp function core/tests/Drupal/Tests/Core/Session/UserRolesAccessPolicyTest.php
UserRolesAccessPolicyTest::testAlterPermissions function core/tests/Drupal/Tests/Core/Session/UserRolesAccessPolicyTest.php Tests the alterPermissions method.
UserRolesAccessPolicyTest::testApplies function core/tests/Drupal/Tests/Core/Session/UserRolesAccessPolicyTest.php @covers ::applies
UserRolesAccessPolicyTest::testCalculatePermissions function core/tests/Drupal/Tests/Core/Session/UserRolesAccessPolicyTest.php Tests the calculatePermissions method.
UserRolesAccessPolicyTest::testGetPersistentCacheContexts function core/tests/Drupal/Tests/Core/Session/UserRolesAccessPolicyTest.php Tests the getPersistentCacheContexts method.
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

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