You are here

public function DomainRouteCheck::applies in Domain Access 8

File

domain/src/Access/DomainRouteCheck.php, line 51

Class

DomainRouteCheck
Determines access to routes based on domains.

Namespace

Drupal\domain\Access

Code

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