You are here

public function ModerationDashboardAccess::applies in Moderation Dashboard 2.0.x

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/ModerationDashboardAccess.php, line 36

Class

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

Namespace

Drupal\moderation_dashboard\Access

Code

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