public function SwitchForm::__construct in Domain Access 8
Constructs a new DevelGenerateForm object.
Parameters
\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.
\Drupal\Core\Language\LanguageManagerInterface $language_manager: The language manager.
\Drupal\domain_config_ui\DomainConfigUIManager $domain_config_ui_manager: The domain config UI manager.
\Drupal\domain\DomainElementManagerInterface $domain_element_manager: The domain field element manager.
File
- domain_config_ui/
src/ Form/ SwitchForm.php, line 42
Class
- SwitchForm
- Class SwitchForm.
Namespace
Drupal\domain_config_ui\FormCode
public function __construct(EntityTypeManagerInterface $entity_type_manager, LanguageManagerInterface $language_manager, DomainConfigUIManager $domain_config_ui_manager, DomainElementManagerInterface $domain_element_manager) {
$this->domainConfigUiManager = $domain_config_ui_manager;
$this->languageManager = $language_manager;
$this->entityTypeManager = $entity_type_manager;
$this->domainStorage = $this->entityTypeManager
->getStorage('domain');
$this->domainElementManager = $domain_element_manager;
// Not loaded directly since it is not an interface.
$this->accessHandler = $this->entityTypeManager
->getAccessControlHandler('domain');
}