Determine which registered access checks apply to a route.
\Symfony\Component\Routing\Route $route: The route to get list of access checks for.
array An array of service ids for the access checks that apply to passed route.
protected function applies(Route $route) {
$checks = array();
foreach ($this->checkIds as $service_id) {
if (empty($this->checks[$service_id])) {
$this
->loadCheck($service_id);
}
if ($this->checks[$service_id]
->applies($route)) {
$checks[] = $service_id;
}
}
return $checks;
}