You are here

public function DomainNegotiator::setActiveDomain in Domain Access 8

Sets the active domain.

Parameters

\Drupal\domain\DomainInterface $domain: Sets the domain record as active for the duration of that request.

Overrides DomainNegotiatorInterface::setActiveDomain

1 call to DomainNegotiator::setActiveDomain()
DomainNegotiator::setRequestDomain in domain/src/DomainNegotiator.php
Determines the active domain request.

File

domain/src/DomainNegotiator.php, line 138

Class

DomainNegotiator

Namespace

Drupal\domain

Code

public function setActiveDomain(DomainInterface $domain) {

  // @TODO: caching
  $this->domain = $domain;
}