You are here

public function ScheduledListAccess::applies in Scheduler 8

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 this access checker applies to this route.

Overrides AccessCheckInterface::applies

File

src/Access/ScheduledListAccess.php, line 36

Class

ScheduledListAccess
Checks access for displaying the scheduler list of scheduled nodes.

Namespace

Drupal\scheduler\Access

Code

public function applies(Route $route) {
  return $route
    ->hasRequirement('_access_scheduler_content');
}