Search for all
Title | Object type | File name | Summary |
---|---|---|---|
AccessPolicyProcessorTest.php | file | core/ |
|
AccessPolicyProcessorTest::accountSwitcherProvider | function | core/ |
Data provider for testAccountSwitcher(). |
AccessPolicyProcessorTest::cachingProvider | function | core/ |
Data provider for testCaching(). |
AccessPolicyProcessorTest::setUp | function | core/ |
|
AccessPolicyProcessorTest::setUpAccessPolicyProcessor | function | core/ |
Sets up the access policy processor. |
AccessPolicyProcessorTest::testAccountSwitcher | function | core/ |
Tests if the account switcher switches properly when user cache context is present. |
AccessPolicyProcessorTest::testAlterPermissions | function | core/ |
Tests that access policies can alter the final result. |
AccessPolicyProcessorTest::testAlterPermissionsNoApply | function | core/ |
Tests that alters that do not apply are not processed. |
AccessPolicyProcessorTest::testCacheContextCaching | function | core/ |
Tests that the persistent cache contexts are added properly. |
AccessPolicyProcessorTest::testCacheContexts | function | core/ |
Tests that only the cache contexts for policies that apply are added. |
AccessPolicyProcessorTest::testCaching | function | core/ |
Tests if the caches are called correctly. |
AccessPolicyProcessorTest::testCalculatePermissions | function | core/ |
Tests that access policies are properly processed. |
AccessPolicyProcessorTest::testCalculatePermissionsNoApply | function | core/ |
Tests that access policies that do not apply are not processed. |
AccessPolicyProcessorTest::testEmptyCalculator | function | core/ |
Tests that access policies which do nothing are properly processed. |
AccessPolicyProcessorTest::testMultipleScopeAlterException | function | core/ |
Tests the multiple scopes exception. |
AccessPolicyProcessorTest::testMultipleScopeException | function | core/ |
Tests the multiple scopes exception. |
AccessPolicyProcessorTest::testNoCalculators | function | core/ |
Tests that everything works if no access policies are present. |
AccessPolicyProcessorTest::testWrongScopeException | function | core/ |
Tests the wrong scope exception. |
AccessPolicyScopeException | class | core/ |
An exception thrown when permissions are returned for the wrong scope. |
AccessPolicyScopeException.php | file | core/ |
|
AccessResult | class | core/ |
Value object for passing an access result with cacheability metadata. |
AccessResult.php | file | core/ |
|
AccessResult::allowed | function | core/ |
Creates an AccessResultInterface object with isAllowed() === TRUE. |
AccessResult::allowedIf | function | core/ |
Creates an allowed or neutral access result. |
AccessResult::allowedIfHasPermission | function | core/ |
Creates an access result if the permission is present, neutral otherwise. |
AccessResult::allowedIfHasPermissions | function | core/ |
Creates an access result if the permissions are present, neutral otherwise. |
AccessResult::andIf | function | core/ |
|
AccessResult::cachePerPermissions | function | core/ |
Convenience method, adds the "user.permissions" cache context. |
AccessResult::cachePerUser | function | core/ |
Convenience method, adds the "user" cache context. |
AccessResult::forbidden | function | core/ |
Creates an AccessResultInterface object with isForbidden() === TRUE. |
AccessResult::forbiddenIf | function | core/ |
Creates a forbidden or neutral access result. |
AccessResult::getCacheContexts | function | core/ |
|
AccessResult::getCacheMaxAge | function | core/ |
|
AccessResult::getCacheTags | function | core/ |
|
AccessResult::inheritCacheability | function | core/ |
Inherits the cacheability of the other access result, if any. |
AccessResult::isAllowed | function | core/ |
|
AccessResult::isForbidden | function | core/ |
|
AccessResult::isNeutral | function | core/ |
|
AccessResult::neutral | function | core/ |
Creates an AccessResultInterface object with isNeutral() === TRUE. |
AccessResult::orIf | function | core/ |
|
AccessResult::resetCacheContexts | function | core/ |
Resets cache contexts (to the empty array). |
AccessResult::resetCacheTags | function | core/ |
Resets cache tags (to the empty array). |
AccessResult::setCacheMaxAge | function | core/ |
Sets the maximum age for which this access result may be cached. |
AccessResultAllowed | class | core/ |
Value object indicating an allowed access result, with cacheability metadata. |
AccessResultAllowed.php | file | core/ |
|
AccessResultAllowed::isAllowed | function | core/ |
|
AccessResultForbidden | class | core/ |
Value object for a forbidden access result, with cacheability metadata. |
AccessResultForbidden.php | file | core/ |
|
AccessResultForbidden::$reason | property | core/ |
The reason why access is forbidden. For use in error messages. |
AccessResultForbidden::getReason | function | core/ |
Pagination
- Previous page
- Page 6
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.