public function DomainAccessCheck::checkPath in Domain Access 8
1 call to DomainAccessCheck::checkPath()
- DomainAccessCheck::applies in domain/
src/ Access/ DomainAccessCheck.php - Declares whether the access check applies to a specific route or not.
File
- domain/
src/ Access/ DomainAccessCheck.php, line 65
Class
- DomainAccessCheck
- Provides a global access check to ensure inactive domains are restricted.
Namespace
Drupal\domain\AccessCode
public function checkPath($path) {
$allowed_paths = $this->configFactory
->get('domain.settings')
->get('login_paths');
return !$this->pathMatcher
->matchPath($path, $allowed_paths);
}