AccessAwareRouterInterface::ACCESS_RESULT |
constant |
core/lib/Drupal/Core/Routing/AccessAwareRouterInterface.php |
Attribute name of the access result for the request.. |
AccessAwareRouterTest::testCheckAccessResultWithReason |
function |
core/tests/Drupal/Tests/Core/Routing/AccessAwareRouterTest.php |
Tests the matchRequest() function for access denied with reason message. |
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 |
Combine this access result with another using AND. |
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 |
Combine this access result with another using OR. |
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. |
AccessResultInterface::isForbidden |
function |
core/lib/Drupal/Core/Access/AccessResultInterface.php |
Checks whether this access result indicates access is explicitly forbidden. |
AccessResultInterface::isNeutral |
function |
core/lib/Drupal/Core/Access/AccessResultInterface.php |
Checks whether this access result indicates access is not yet determined. |
AccessResultInterface::orIf |
function |
core/lib/Drupal/Core/Access/AccessResultInterface.php |
Combine this access result with another using OR. |
AccessResultNeutral |
class |
core/lib/Drupal/Core/Access/AccessResultNeutral.php |
Value object indicating a neutral access result, with cacheability metadata. |
AccessResultNeutral.php |
file |
core/lib/Drupal/Core/Access/AccessResultNeutral.php |
|
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. |