You are here

public function DomainAccessCheck::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/src/Access/DomainAccessCheck.php, line 58

Class

DomainAccessCheck
Provides a global access check to ensure inactive domains are restricted.

Namespace

Drupal\domain\Access

Code

public function applies(Route $route) {
  return $this
    ->checkPath($route
    ->getPath());
}