You are here

public function DomainConfigLibraryDiscoveryCollector::setDomainNegotiator in Domain Access 8

Set a domain.

Parameters

\Drupal\domain\DomainNegotiatorInterface $domainNegotiator: The domain negotiator.

File

domain_config/src/DomainConfigLibraryDiscoveryCollector.php, line 28

Class

DomainConfigLibraryDiscoveryCollector
Class DomainConfigLibraryDiscoveryCollector.

Namespace

Drupal\domain_config

Code

public function setDomainNegotiator(DomainNegotiatorInterface $domainNegotiator) {
  $this->domain = $domainNegotiator
    ->getActiveDomain();
}