public function DeleteLinkAccessCheck::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/menu/lib/Drupal/menu/Access/DeleteLinkAccessCheck.php, line 22
Contains \Drupal\menu\Access\DeleteLinkAccessCheck.

Class

DeleteLinkAccessCheck
Access check for menu link delete routes.

Namespace

Drupal\menu\Access

Code

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