You are here

public function DomainSourcePathProcessor::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 DomainSourcePathProcessor::getExcludedRoutes()
DomainSourcePathProcessor::allowedRoute in domain_source/src/HttpKernel/DomainSourcePathProcessor.php
Checks that a route's common name is not disallowed.

File

domain_source/src/HttpKernel/DomainSourcePathProcessor.php, line 253

Class

DomainSourcePathProcessor
Processes the outbound path using path alias lookups.

Namespace

Drupal\domain_source\HttpKernel

Code

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;
}