public function CronAccessCheck::applies

Implements AccessCheckInterface::applies().

Overrides AccessCheckInterface::applies

File

drupal/core/modules/system/lib/Drupal/system/Access/CronAccessCheck.php, line 22
Contains Drupal\system\Access\CronAccessCheck.

Class

CronAccessCheck
Access check for cron routes.

Namespace

Drupal\system\Access

Code

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