Search for all

  1. Search 7.x for all
  2. Search 9.5.x for all
  3. Search 8.9.x for all
  4. Search 10.3.x for all
  5. Search 11.x for all
  6. Other projects
Title Object type File name Summary
RoleAccessCheck class core/modules/user/src/Access/RoleAccessCheck.php Determines access to routes based on roles.
RoleAccessCheck.php file core/modules/user/src/Access/RoleAccessCheck.php
RoleAccessCheck::access function core/modules/user/src/Access/RoleAccessCheck.php Checks access.
RoleAccessCheckTest class core/tests/Drupal/Tests/Core/Route/RoleAccessCheckTest.php Tests Drupal\user\Access\RoleAccessCheck.
RoleAccessCheckTest.php file core/tests/Drupal/Tests/Core/Route/RoleAccessCheckTest.php
RoleAccessCheckTest::getTestRouteCollection function core/tests/Drupal/Tests/Core/Route/RoleAccessCheckTest.php Generates the test route collection.
RoleAccessCheckTest::roleAccessProvider function core/tests/Drupal/Tests/Core/Route/RoleAccessCheckTest.php Provides data for the role access test.
RoleAccessCheckTest::testRoleAccess function core/tests/Drupal/Tests/Core/Route/RoleAccessCheckTest.php Tests role requirements on routes.
RoleAccessControlHandler class core/modules/user/src/RoleAccessControlHandler.php Defines the access control handler for the user role entity type.
RoleAccessControlHandler.php file core/modules/user/src/RoleAccessControlHandler.php
RoleAccessControlHandler::checkAccess function core/modules/user/src/RoleAccessControlHandler.php
RoleExistsConstraint class core/modules/user/src/Plugin/Validation/Constraint/RoleExistsConstraint.php Checks if a role exists.
RoleExistsConstraint.php file core/modules/user/src/Plugin/Validation/Constraint/RoleExistsConstraint.php
RoleExistsConstraint::__construct function core/modules/user/src/Plugin/Validation/Constraint/RoleExistsConstraint.php
RoleExistsConstraintValidator class core/modules/user/src/Plugin/Validation/Constraint/RoleExistsConstraintValidator.php Validates that a role exists.
RoleExistsConstraintValidator.php file core/modules/user/src/Plugin/Validation/Constraint/RoleExistsConstraintValidator.php
RoleExistsConstraintValidator::create function core/modules/user/src/Plugin/Validation/Constraint/RoleExistsConstraintValidator.php
RoleExistsConstraintValidator::validate function core/modules/user/src/Plugin/Validation/Constraint/RoleExistsConstraintValidator.php
RoleExistsConstraintValidator::__construct function core/modules/user/src/Plugin/Validation/Constraint/RoleExistsConstraintValidator.php Create a new RoleExistsConstraintValidator instance.
RoleExistsConstraintValidatorTest class core/modules/user/tests/src/Kernel/Plugin/Validation/Constraint/RoleExistsConstraintValidatorTest.php Tests Role Exists Constraint Validator.
RoleExistsConstraintValidatorTest.php file core/modules/user/tests/src/Kernel/Plugin/Validation/Constraint/RoleExistsConstraintValidatorTest.php
RoleExistsConstraintValidatorTest::$modules property core/modules/user/tests/src/Kernel/Plugin/Validation/Constraint/RoleExistsConstraintValidatorTest.php
RoleExistsConstraintValidatorTest::testRoleExists function core/modules/user/tests/src/Kernel/Plugin/Validation/Constraint/RoleExistsConstraintValidatorTest.php Tests when the constraint's entityTypeId value is not valid.
RoleExistsConstraintValidatorTest::testValueMustBeAString function core/modules/user/tests/src/Kernel/Plugin/Validation/Constraint/RoleExistsConstraintValidatorTest.php Tests that the constraint validator will only work with strings.
RoleForm class core/modules/user/src/RoleForm.php Form controller for the role entity edit forms.
RoleForm.php file core/modules/user/src/RoleForm.php
RoleForm::form function core/modules/user/src/RoleForm.php
RoleForm::save function core/modules/user/src/RoleForm.php
RoleInterface interface core/modules/user/src/RoleInterface.php Provides an interface defining a user role entity.
RoleInterface.php file core/modules/user/src/RoleInterface.php
RoleInterface::ANONYMOUS_ID constant core/modules/user/src/RoleInterface.php Role ID for anonymous users; should match the 'role' entity ID.
RoleInterface::AUTHENTICATED_ID constant core/modules/user/src/RoleInterface.php Role ID for authenticated users; should match the 'role' entity ID.
RoleInterface::getPermissions function core/modules/user/src/RoleInterface.php Returns a list of permissions assigned to the role.
RoleInterface::getWeight function core/modules/user/src/RoleInterface.php Returns the weight.
RoleInterface::grantPermission function core/modules/user/src/RoleInterface.php Grant permissions to the role.
RoleInterface::hasPermission function core/modules/user/src/RoleInterface.php Checks if the role has a permission.
RoleInterface::isAdmin function core/modules/user/src/RoleInterface.php Indicates that a role has all available permissions.
RoleInterface::revokePermission function core/modules/user/src/RoleInterface.php Revokes a permissions from the user role.
RoleInterface::setIsAdmin function core/modules/user/src/RoleInterface.php Sets the role to be an admin role.
RoleInterface::setWeight function core/modules/user/src/RoleInterface.php Sets the weight to the given value.
RoleJsonAnonTest class core/modules/user/tests/src/Functional/Rest/RoleJsonAnonTest.php Tests Role Json Anon.
RoleJsonAnonTest.php file core/modules/user/tests/src/Functional/Rest/RoleJsonAnonTest.php
RoleJsonAnonTest::$defaultTheme property core/modules/user/tests/src/Functional/Rest/RoleJsonAnonTest.php
RoleJsonAnonTest::$format property core/modules/user/tests/src/Functional/Rest/RoleJsonAnonTest.php
RoleJsonAnonTest::$mimeType property core/modules/user/tests/src/Functional/Rest/RoleJsonAnonTest.php
RoleJsonBasicAuthTest class core/modules/user/tests/src/Functional/Rest/RoleJsonBasicAuthTest.php Tests Role Json Basic Auth.
RoleJsonBasicAuthTest.php file core/modules/user/tests/src/Functional/Rest/RoleJsonBasicAuthTest.php
RoleJsonBasicAuthTest::$auth property core/modules/user/tests/src/Functional/Rest/RoleJsonBasicAuthTest.php
RoleJsonBasicAuthTest::$defaultTheme property core/modules/user/tests/src/Functional/Rest/RoleJsonBasicAuthTest.php
RoleJsonBasicAuthTest::$format property core/modules/user/tests/src/Functional/Rest/RoleJsonBasicAuthTest.php

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