You are here

public function FormModeThemeNegociator::__construct in Form mode manager 8.2

Creates a new RoleThemeSwitcherNegotiator instance.

Parameters

\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The config factory.

\Drupal\Core\Session\AccountInterface $current_user: The current user.

File

modules/form_mode_theme_switcher/src/Theme/FormModeThemeNegociator.php, line 52

Class

FormModeThemeNegociator
Class FormModeThemeNegociator.

Namespace

Drupal\form_mode_manager_theme_switcher\Theme

Code

public function __construct(ConfigFactoryInterface $config_factory, AccountInterface $current_user) {
  $this->formModeThemeSwitcherConfig = $config_factory
    ->get('form_mode_manager_theme_switcher.settings');
  $this->systemThemeConfig = $config_factory
    ->get('form_mode_manager_theme_switcher.settings');
  $this->currentUser = $current_user;
}