You are here

public function DomainAliasForm::__construct in Domain Access 8

Constructs a DomainAliasForm object.

Parameters

\Drupal\domain_alias\DomainAliasValidatorInterface $validator: The domain alias validator.

\Drupal\Core\Config\ConfigFactoryInterface $config: The configuration factory service.

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

File

domain_alias/src/DomainAliasForm.php, line 69

Class

DomainAliasForm
Base form controller for domain alias edit forms.

Namespace

Drupal\domain_alias

Code

public function __construct(DomainAliasValidatorInterface $validator, ConfigFactoryInterface $config, EntityTypeManagerInterface $entity_type_manager) {
  $this->validator = $validator;
  $this->config = $config;
  $this->entityTypeManager = $entity_type_manager;
  $this->aliasStorage = $entity_type_manager
    ->getStorage('domain_alias');
  $this->domainStorage = $entity_type_manager
    ->getStorage('domain');

  // Not loaded directly since it is not an interface.
  $this->accessHandler = $this->entityTypeManager
    ->getAccessControlHandler('domain');
}