public function 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 the check applies to the passed route, FALSE otherwise.

19 methods override AccessCheckInterface::applies()
CronAccessCheck::applies in drupal/core/modules/system/lib/Drupal/system/Access/CronAccessCheck.php
Implements AccessCheckInterface::applies().
CSRFAccessCheck::applies in drupal/core/modules/rest/lib/Drupal/rest/Access/CSRFAccessCheck.php
Implements AccessCheckInterface::applies().
DefaultAccessCheck::applies in drupal/core/lib/Drupal/Core/Access/DefaultAccessCheck.php
Implements AccessCheckInterface::applies().
DefinedTestAccessCheck::applies in drupal/core/modules/system/tests/modules/router_test/lib/Drupal/router_test/Access/DefinedTestAccessCheck.php
Declares whether the access check applies to a specific route or not.
DeleteLinkAccessCheck::applies in drupal/core/modules/menu/lib/Drupal/menu/Access/DeleteLinkAccessCheck.php
Declares whether the access check applies to a specific route or not.

... See full list

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);