public function AdminSettingsForm::__construct in Role Theme Switcher 8
Constructs a new AdminSettingsForm object.
Parameters
\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The config factory service.
\Drupal\Core\Extension\ThemeHandlerInterface $theme_handler: The theme handler.
Overrides ConfigFormBase::__construct
File
- src/
Form/ AdminSettingsForm.php, line 31
Class
- AdminSettingsForm
- Provides the theme switcher configuration form.
Namespace
Drupal\role_theme_switcher\FormCode
public function __construct(ConfigFactoryInterface $config_factory, ThemeHandlerInterface $theme_handler) {
parent::__construct($config_factory);
$this->themeHandler = $theme_handler;
}