public function DomainSourceToken::getExcludedRoutes in Domain Access 8
Gets the settings for domain source path rewrites.
Return value
array The settings for domain source path rewrites.
1 call to DomainSourceToken::getExcludedRoutes()
- DomainSourceToken::getTokens in domain_source/
src/ DomainSourceToken.php - Implements hook_tokens().
File
- domain_source/
src/ DomainSourceToken.php, line 91
Class
- DomainSourceToken
- Token handler for Domain Source.
Namespace
Drupal\domain_sourceCode
public function getExcludedRoutes() {
if (!isset($this->excludedRoutes)) {
$config = $this->configFactory
->get('domain_source.settings');
$routes = $config
->get('exclude_routes');
if (is_array($routes)) {
$this->excludedRoutes = array_flip($routes);
}
else {
$this->excludedRoutes = [];
}
}
return $this->excludedRoutes;
}