You are here

public function DomainToken::__construct in Domain Access 8

Constructs a DomainToken object.

Parameters

\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.

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

File

domain/src/DomainToken.php, line 48

Class

DomainToken
Token handler for Domain.

Namespace

Drupal\domain

Code

public function __construct(EntityTypeManagerInterface $entity_type_manager, DomainNegotiatorInterface $negotiator) {
  $this->entityTypeManager = $entity_type_manager;
  $this->domainStorage = $this->entityTypeManager
    ->getStorage('domain');
  $this->negotiator = $negotiator;
}