You are here

public function DomainAliasValidator::__construct in Domain Access 8

Constructs a domainStorage object.

Parameters

\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The config factory.

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

File

domain_alias/src/DomainAliasValidator.php, line 52

Class

DomainAliasValidator
Supplies validator methods for common domain requests.

Namespace

Drupal\domain_alias

Code

public function __construct(ConfigFactoryInterface $config_factory, EntityTypeManagerInterface $entity_type_manager) {
  $this->configFactory = $config_factory;
  $this->entityTypeManager = $entity_type_manager;
  $this->aliasStorage = $this->entityTypeManager
    ->getStorage('domain_alias');
  $this->domainStorage = $this->entityTypeManager
    ->getStorage('domain');
}