public function DomainElementManager::__construct in Domain Access 8
Constructs a DomainElementManager object.
Parameters
\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.
File
- domain/
src/ DomainElementManager.php, line 47
Class
- DomainElementManager
- Generic base class for handling hidden field options.
Namespace
Drupal\domainCode
public function __construct(EntityTypeManagerInterface $entity_type_manager) {
$this->entityTypeManager = $entity_type_manager;
$this->domainStorage = $entity_type_manager
->getStorage('domain');
}