You are here

public function DomainAccessViewsAccess::applies in Domain Access 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

domain_access/src/Access/DomainAccessViewsAccess.php, line 101

Class

DomainAccessViewsAccess
Class DomainAccessViewsAccess.

Namespace

Drupal\domain_access\Access

Code

public function applies(Route $route) {
  return $route
    ->hasRequirement($this->requirementsKey);
}