public function DefaultAccessCheck::applies

Implements AccessCheckInterface::applies().

Overrides AccessCheckInterface::applies

File

drupal/core/lib/Drupal/Core/Access/DefaultAccessCheck.php, line 21
Contains Drupal\Core\Access\DefaultAccessCheck.

Class

DefaultAccessCheck
Allows access to routes to be controlled by an '_access' boolean parameter.

Namespace

Drupal\Core\Access

Code

public function applies(Route $route) {
  return array_key_exists('_access', $route
    ->getRequirements());
}