You are here

public function AdminSettingsForm::__construct in Role Based Theme Switcher 8

Same name and namespace in other branches
  1. 9.1.x src/Form/AdminSettingsForm.php \Drupal\role_based_theme_switcher\Form\AdminSettingsForm::__construct()

Constructs a \Drupal\system\ConfigFormBase object.

Parameters

\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The factory for configuration objects.

Overrides ConfigFormBase::__construct

File

src/Form/AdminSettingsForm.php, line 40

Class

AdminSettingsForm
Configure Role Based settings for this site.

Namespace

Drupal\role_based_theme_switcher\Form

Code

public function __construct(ThemeHandler $themeGlobal, ConfigFactoryInterface $config_factory) {
  $this->themeGlobal = $themeGlobal;
  $this->configFactory = $config_factory;
}