You are here

public function DomainEntitySettings::__construct in Domain Access Entity 8

Creates a new DomainEntityUi object.

Parameters

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

\Drupal\Core\Entity\EntityTypeBundleInfoInterface $entity_type_bundle_info: The domain loader.

\Drupal\domain_entity\DomainEntityMapper $mapper: The domain entity mapper.

File

src/Form/DomainEntitySettings.php, line 64

Class

DomainEntitySettings
Provides a form to configure domain fields mappings.

Namespace

Drupal\domain_entity\Form

Code

public function __construct(EntityTypeManagerInterface $entity_type_manager, EntityTypeBundleInfoInterface $entity_type_bundle_info, DomainEntityMapper $mapper) {
  $this->entityTypeManager = $entity_type_manager;
  $this->entityTypeBundleInfo = $entity_type_bundle_info;
  $this->domainLoader = $entity_type_manager
    ->getStorage('domain');
  $this->mapper = $mapper;
}