public static function AccessResult::forbidden in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/lib/Drupal/Core/Access/AccessResult.php \Drupal\Core\Access\AccessResult::forbidden()
Creates an AccessResultInterface object with isForbidden() === TRUE.
Return value
\Drupal\Core\Access\AccessResult isForbidden() will be TRUE.
42 calls to AccessResult::forbidden()
- AccessAwareRouterTest::testMatchRequestDenied in core/
tests/ Drupal/ Tests/ Core/ Routing/ AccessAwareRouterTest.php - Tests the matchRequest() function for access denied.
- AccessManagerTest::providerTestCheckConjunctions in core/
tests/ Drupal/ Tests/ Core/ Access/ AccessManagerTest.php - Provides data for the conjunction test.
- AccessManagerTest::testCheck in core/
tests/ Drupal/ Tests/ Core/ Access/ AccessManagerTest.php - Tests \Drupal\Core\Access\AccessManager::check().
- AccessManagerTest::testCheckNamedRouteWithDefaultValue in core/
tests/ Drupal/ Tests/ Core/ Access/ AccessManagerTest.php - Tests the checkNamedRoute with default values.
- AccessManagerTest::testCheckNamedRouteWithUpcastedValues in core/
tests/ Drupal/ Tests/ Core/ Access/ AccessManagerTest.php - Tests the checkNamedRoute with upcasted values.
File
- core/
lib/ Drupal/ Core/ Access/ AccessResult.php, line 61 - Contains \Drupal\Core\Access\AccessResult.
Class
- AccessResult
- Value object for passing an access result with cacheability metadata.
Namespace
Drupal\Core\AccessCode
public static function forbidden() {
return new AccessResultForbidden();
}