Search for on

  1. Search 7.x for on
  2. Search 9.5.x for on
  3. Search 8.9.x for on
  4. Search 10.3.x for on
  5. Other projects
Title Object type File name Summary
AccessPolicyProcessor::getPersistentCacheContexts function core/lib/Drupal/Core/Session/AccessPolicyProcessor.php Gets the persistent cache contexts of all policies within a given scope.
AccessPolicyProcessor::__construct function core/lib/Drupal/Core/Session/AccessPolicyProcessor.php
AccessPolicyProcessorTest::testAlterPermissions function core/tests/Drupal/Tests/Core/Session/AccessPolicyProcessorTest.php Tests that access policies can alter the final result.
AccessPolicyProcessorTest::testAlterPermissionsNoApply function core/tests/Drupal/Tests/Core/Session/AccessPolicyProcessorTest.php Tests that alters that do not apply are not processed.
AccessPolicyProcessorTest::testCacheContextCaching function core/tests/Drupal/Tests/Core/Session/AccessPolicyProcessorTest.php Tests that the persistent cache contexts are added properly.
AccessPolicyProcessorTest::testCacheContexts function core/tests/Drupal/Tests/Core/Session/AccessPolicyProcessorTest.php Tests that only the cache contexts for policies that apply are added.
AccessPolicyProcessorTest::testCalculatePermissions function core/tests/Drupal/Tests/Core/Session/AccessPolicyProcessorTest.php Tests that access policies are properly processed.
AccessPolicyProcessorTest::testCalculatePermissionsNoApply function core/tests/Drupal/Tests/Core/Session/AccessPolicyProcessorTest.php Tests that access policies that do not apply are not processed.
AccessPolicyProcessorTest::testMultipleScopeAlterException function core/tests/Drupal/Tests/Core/Session/AccessPolicyProcessorTest.php Tests the multiple scopes exception.
AccessPolicyProcessorTest::testMultipleScopeException function core/tests/Drupal/Tests/Core/Session/AccessPolicyProcessorTest.php Tests the multiple scopes exception.
AccessPolicyProcessorTest::testWrongScopeException function core/tests/Drupal/Tests/Core/Session/AccessPolicyProcessorTest.php Tests the wrong scope exception.
AccessPolicyScopeException class core/lib/Drupal/Core/Session/AccessPolicyScopeException.php An exception thrown when permissions are returned for the wrong scope.
AccessPolicyScopeException.php file core/lib/Drupal/Core/Session/AccessPolicyScopeException.php
AccessResult::allowedIfHasPermission function core/lib/Drupal/Core/Access/AccessResult.php Creates an access result if the permission is present, neutral otherwise.
AccessResult::allowedIfHasPermissions function core/lib/Drupal/Core/Access/AccessResult.php Creates an access result if the permissions are present, neutral otherwise.
AccessResult::cachePerPermissions function core/lib/Drupal/Core/Access/AccessResult.php Convenience method, adds the "user.permissions" cache context.
AccessResult::getCacheContexts function core/lib/Drupal/Core/Access/AccessResult.php The cache contexts associated with this object.
AccessResult::resetCacheContexts function core/lib/Drupal/Core/Access/AccessResult.php Resets cache contexts (to the empty array).
AccessResultForbidden::$reason property core/lib/Drupal/Core/Access/AccessResultForbidden.php The reason why access is forbidden. For use in error messages.
AccessResultForbidden::getReason function core/lib/Drupal/Core/Access/AccessResultForbidden.php Gets the reason for this access result.
AccessResultForbidden::setReason function core/lib/Drupal/Core/Access/AccessResultForbidden.php Sets the reason for this access result.
AccessResultForbidden::__construct function core/lib/Drupal/Core/Access/AccessResultForbidden.php Constructs a new AccessResultForbidden instance.
AccessResultForbiddenTest::testConstruction function core/tests/Drupal/Tests/Core/Access/AccessResultForbiddenTest.php Tests the construction of an AccessResultForbidden object.
AccessResultForbiddenTest::testSetReason function core/tests/Drupal/Tests/Core/Access/AccessResultForbiddenTest.php Tests setReason()
AccessResultNeutral::$reason property core/lib/Drupal/Core/Access/AccessResultNeutral.php The reason why access is neutral. For use in messages.
AccessResultNeutral::getReason function core/lib/Drupal/Core/Access/AccessResultNeutral.php Gets the reason for this access result.
AccessResultNeutral::setReason function core/lib/Drupal/Core/Access/AccessResultNeutral.php Sets the reason for this access result.
AccessResultNeutral::__construct function core/lib/Drupal/Core/Access/AccessResultNeutral.php Constructs a new AccessResultNeutral instance.
AccessResultNeutralTest::testConstruction function core/tests/Drupal/Tests/Core/Access/AccessResultNeutralTest.php Tests the construction of an AccessResultForbidden object.
AccessResultNeutralTest::testSetReason function core/tests/Drupal/Tests/Core/Access/AccessResultNeutralTest.php Tests setReason()
AccessResultReasonInterface interface core/lib/Drupal/Core/Access/AccessResultReasonInterface.php Interface for access result value objects with stored reason for developers.
AccessResultReasonInterface.php file core/lib/Drupal/Core/Access/AccessResultReasonInterface.php
AccessResultReasonInterface::getReason function core/lib/Drupal/Core/Access/AccessResultReasonInterface.php Gets the reason for this access result.
AccessResultReasonInterface::setReason function core/lib/Drupal/Core/Access/AccessResultReasonInterface.php Sets the reason for this access result.
AccessResultTest::$cacheContextsManager property core/tests/Drupal/Tests/Core/Access/AccessResultTest.php The cache contexts manager.
AccessResultTest::andOrCacheabilityPropagationProvider function core/tests/Drupal/Tests/Core/Access/AccessResultTest.php Provides a list of access result pairs and operations to test.
AccessResultTest::providerTestAllowedIfHasPermissions function core/tests/Drupal/Tests/Core/Access/AccessResultTest.php Provides data for the testAllowedIfHasPermissions() method.
AccessResultTest::testAccessConditionallyAllowed function core/tests/Drupal/Tests/Core/Access/AccessResultTest.php @covers ::allowedIf[[api-linebreak]]
@covers ::isAllowed[[api-linebreak]]
@covers ::isForbidden[[api-linebreak]]
@covers ::isNeutral[[api-linebreak]]
AccessResultTest::testAccessConditionallyForbidden function core/tests/Drupal/Tests/Core/Access/AccessResultTest.php @covers ::forbiddenIf[[api-linebreak]]
@covers ::isAllowed[[api-linebreak]]
@covers ::isForbidden[[api-linebreak]]
@covers ::isNeutral[[api-linebreak]]
AccessResultTest::testAccessForbiddenReason function core/tests/Drupal/Tests/Core/Access/AccessResultTest.php @covers ::forbidden[[api-linebreak]]
AccessResultTest::testAllowedIfHasPermissions function core/tests/Drupal/Tests/Core/Access/AccessResultTest.php Tests allowedIfHasPermissions().
AccessResultTest::testAndOrCacheabilityPropagation function core/tests/Drupal/Tests/Core/Access/AccessResultTest.php @covers ::andIf[[api-linebreak]]
@covers ::orIf[[api-linebreak]]
@covers ::inheritCacheability[[api-linebreak]]
AccessResultTest::testCacheContexts function core/tests/Drupal/Tests/Core/Access/AccessResultTest.php @covers ::addCacheContexts[[api-linebreak]]
@covers ::resetCacheContexts[[api-linebreak]]
@covers ::getCacheContexts[[api-linebreak]]
@covers ::cachePerPermissions[[api-linebreak]]
@covers ::cachePerUser[[api-linebreak]]
@covers…
AccessResultTest::testConstruction function core/tests/Drupal/Tests/Core/Access/AccessResultTest.php Tests the construction of an AccessResult object.
AccessTest::testAccessNone function core/modules/views/tests/src/Functional/Plugin/AccessTest.php Tests none access plugin.
AccessTest::testContentAccessFilter function core/modules/views/tests/src/Functional/Plugin/AccessTest.php Tests that node_access table is joined when hook_node_grants() is implemented.
access_check.contact_personal service core/modules/contact/contact.services.yml Drupal\contact\Access\ContactPageAccess
access_check.cron service core/modules/system/system.services.yml Drupal\system\Access\CronAccessCheck
access_check.jsonapi.relationship_route_access service core/modules/jsonapi/jsonapi.services.yml Drupal\jsonapi\Access\RelationshipRouteAccessCheck
access_check.latest_revision service core/modules/content_moderation/content_moderation.services.yml Drupal\content_moderation\Access\LatestRevisionCheck

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