public function DomainControllerBase::__construct in Domain Access 8
Constructs a new DomainControllerBase.
Parameters
\Drupal\domain\DomainStorageInterface $domain_storage: The storage controller.
\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity manager.
File
- domain/
src/ Controller/ DomainControllerBase.php, line 43
Class
- DomainControllerBase
- Sets a base class for injecting domain information into controllers.
Namespace
Drupal\domain\ControllerCode
public function __construct(DomainStorageInterface $domain_storage, EntityTypeManagerInterface $entity_type_manager) {
$this->domainStorage = $domain_storage;
$this->entityTypeManager = $entity_type_manager;
}