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 the check applies to the passed route, FALSE otherwise.
File
- drupal/core/lib/Drupal/Core/Access/AccessCheckInterface.php, line 52
- Contains Drupal\Core\Access\AccessCheckInterface.
Class
- AccessCheckInterface
- An access check service determines access rules for particular routes.
Namespace
Drupal\Core\Access
Code
public function applies(Route $route);