Search for %s

  1. Search 7.x for %s
  2. Search 9.5.x for %s
  3. Search 8.9.x for %s
  4. Search 10.3.x for %s
  5. Search main for %s
  6. Other projects
Title Object type File name Summary
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::testEmptyCalculator function core/tests/Drupal/Tests/Core/Session/AccessPolicyProcessorTest.php Tests that access policies which do nothing are properly 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::testNoCalculators function core/tests/Drupal/Tests/Core/Session/AccessPolicyProcessorTest.php Tests that everything works if no access policies are present.
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 class core/lib/Drupal/Core/Access/AccessResult.php Value object for passing an access result with cacheability metadata.
AccessResult.php file core/lib/Drupal/Core/Access/AccessResult.php
AccessResult::allowed function core/lib/Drupal/Core/Access/AccessResult.php Creates an AccessResultInterface object with isAllowed() === TRUE.
AccessResult::allowedIf function core/lib/Drupal/Core/Access/AccessResult.php Creates an allowed or neutral access result.
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::andIf function core/lib/Drupal/Core/Access/AccessResult.php #[\NoDiscard]
AccessResult::cachePerPermissions function core/lib/Drupal/Core/Access/AccessResult.php Convenience method, adds the "user.permissions" cache context.
AccessResult::cachePerUser function core/lib/Drupal/Core/Access/AccessResult.php Convenience method, adds the "user" cache context.
AccessResult::forbidden function core/lib/Drupal/Core/Access/AccessResult.php Creates an AccessResultInterface object with isForbidden() === TRUE.
AccessResult::forbiddenIf function core/lib/Drupal/Core/Access/AccessResult.php Creates a forbidden or neutral access result.
AccessResult::getCacheContexts function core/lib/Drupal/Core/Access/AccessResult.php The cache contexts associated with this object.
AccessResult::getCacheMaxAge function core/lib/Drupal/Core/Access/AccessResult.php The maximum age for which this object may be cached.
AccessResult::getCacheTags function core/lib/Drupal/Core/Access/AccessResult.php The cache tags associated with this object.
AccessResult::inheritCacheability function core/lib/Drupal/Core/Access/AccessResult.php Inherits the cacheability of the other access result, if any.
AccessResult::isAllowed function core/lib/Drupal/Core/Access/AccessResult.php
AccessResult::isForbidden function core/lib/Drupal/Core/Access/AccessResult.php
AccessResult::isNeutral function core/lib/Drupal/Core/Access/AccessResult.php
AccessResult::neutral function core/lib/Drupal/Core/Access/AccessResult.php Creates an AccessResultInterface object with isNeutral() === TRUE.
AccessResult::orIf function core/lib/Drupal/Core/Access/AccessResult.php #[\NoDiscard]
AccessResult::resetCacheContexts function core/lib/Drupal/Core/Access/AccessResult.php Resets cache contexts (to the empty array).
AccessResult::resetCacheTags function core/lib/Drupal/Core/Access/AccessResult.php Resets cache tags (to the empty array).
AccessResult::setCacheMaxAge function core/lib/Drupal/Core/Access/AccessResult.php Sets the maximum age for which this access result may be cached.
AccessResultAllowed class core/lib/Drupal/Core/Access/AccessResultAllowed.php Value object indicating an allowed access result, with cacheability metadata.
AccessResultAllowed.php file core/lib/Drupal/Core/Access/AccessResultAllowed.php
AccessResultAllowed::isAllowed function core/lib/Drupal/Core/Access/AccessResultAllowed.php Checks whether this access result indicates access is explicitly allowed.
AccessResultForbidden class core/lib/Drupal/Core/Access/AccessResultForbidden.php Value object for a forbidden access result, with cacheability metadata.
AccessResultForbidden.php file core/lib/Drupal/Core/Access/AccessResultForbidden.php
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::isForbidden function core/lib/Drupal/Core/Access/AccessResultForbidden.php Checks whether this access result indicates access is explicitly forbidden.
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 class core/tests/Drupal/Tests/Core/Access/AccessResultForbiddenTest.php Tests Drupal\Core\Access\AccessResultForbidden.
AccessResultForbiddenTest.php file core/tests/Drupal/Tests/Core/Access/AccessResultForbiddenTest.php
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()
AccessResultInterface interface core/lib/Drupal/Core/Access/AccessResultInterface.php Interface for access result value objects.
AccessResultInterface.php file core/lib/Drupal/Core/Access/AccessResultInterface.php
AccessResultInterface::andIf function core/lib/Drupal/Core/Access/AccessResultInterface.php Combine this access result with another using AND.
AccessResultInterface::isAllowed function core/lib/Drupal/Core/Access/AccessResultInterface.php Checks whether this access result indicates access is explicitly allowed.

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