function AccessCheckInterface::applies
Same name in other branches
- 9 core/lib/Drupal/Core/Access/AccessCheckInterface.php \Drupal\Core\Access\AccessCheckInterface::applies()
- 8.9.x core/lib/Drupal/Core/Access/AccessCheckInterface.php \Drupal\Core\Access\AccessCheckInterface::applies()
- 10 core/lib/Drupal/Core/Access/AccessCheckInterface.php \Drupal\Core\Access\AccessCheckInterface::applies()
Declares whether the access check applies to a specific route or not.
Parameters
\Symfony\Component\Routing\Route $route: The route to consider attaching to.
Return value
bool TRUE if this access checker applies to this route.
1 method overrides AccessCheckInterface::applies()
- CsrfRequestHeaderAccessCheck::applies in core/
lib/ Drupal/ Core/ Access/ CsrfRequestHeaderAccessCheck.php - Declares whether the access check applies to a specific route or not.
File
-
core/
lib/ Drupal/ Core/ Access/ AccessCheckInterface.php, line 22
Class
- AccessCheckInterface
- An access check service determines access rules for particular routes.
Namespace
Drupal\Core\AccessCode
public function applies(Route $route);
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.