public function FilterAccessCheck::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.

Overrides AccessCheckInterface::applies

File

drupal/core/modules/filter/lib/Drupal/filter/Access/FilterAccessCheck.php, line 22
Contains \Drupal\filter\Access\FilterAccessCheck.

Class

FilterAccessCheck
Checks access for text formats.

Namespace

Drupal\filter\Access

Code

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