interface AccessCheckInterface in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/lib/Drupal/Core/Access/AccessCheckInterface.php \Drupal\Core\Access\AccessCheckInterface
An access check service determines access rules for particular routes.
Hierarchy
- interface \Drupal\Core\Routing\Access\AccessInterface
- interface \Drupal\Core\Access\AccessCheckInterface
Expanded class hierarchy of AccessCheckInterface
All classes that implement AccessCheckInterface
2 files declare their use of AccessCheckInterface
- AccessManagerTest.php in core/
tests/ Drupal/ Tests/ Core/ Access/ AccessManagerTest.php - Contains \Drupal\Tests\Core\Access\AccessManagerTest.
- CSRFAccessCheck.php in core/
modules/ rest/ src/ Access/ CSRFAccessCheck.php - Contains \Drupal\rest\Access\CSRFAccessCheck.
File
- core/
lib/ Drupal/ Core/ Access/ AccessCheckInterface.php, line 16 - Contains \Drupal\Core\Access\AccessCheckInterface.
Namespace
Drupal\Core\AccessView source
interface AccessCheckInterface extends RoutingAccessInterface {
/**
* Declares whether the access check applies to a specific route or not.
*
* @param \Symfony\Component\Routing\Route $route
* The route to consider attaching to.
*
* @return array
* An array of route requirement keys this access checker applies to.
*/
public function applies(Route $route);
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
AccessCheckInterface:: |
public | function | Declares whether the access check applies to a specific route or not. | 1 |