public function DomainThemeSwitchConfigForm::__construct in Domain Theme Switch 8
Construct function.
Parameters
\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The config factory load.
\Drupal\Core\Entity\EntityTypeManager $entity_type_manager: The entity type manager.
\Drupal\Core\Extension\ThemeHandlerInterface $theme_handler: The theme handler.
Overrides ConfigFormBase::__construct
File
- src/
Form/ DomainThemeSwitchConfigForm.php, line 45
Class
- DomainThemeSwitchConfigForm
- Class DomainThemeSwitchConfigForm.
Namespace
Drupal\domain_theme_switch\FormCode
public function __construct(ConfigFactoryInterface $config_factory, EntityTypeManager $entity_type_manager, ThemeHandlerInterface $theme_handler) {
parent::__construct($config_factory);
$this->entityTypeManager = $entity_type_manager;
$this->themeHandler = $theme_handler;
}