You are here

public function ThemeSwitcherRuleForm::__construct in Theme Switcher Rules 8

Constructs an SwitchThemeRuleForm object.

Parameters

\Drupal\Core\Messenger\MessengerInterface $messenger: The messenger.

\Drupal\Core\Logger\LoggerChannelInterface $logger: The logger.

\Drupal\Core\Extension\ThemeHandlerInterface $theme_handler: The theme handler.

\Drupal\Core\Executable\ExecutableManagerInterface $condition_plugin_manager: The ConditionManager for building the visibility UI.

\Drupal\Core\Plugin\Context\ContextRepositoryInterface $context_repository: The lazy context repository service.

\Drupal\Core\Language\LanguageManagerInterface $language_manager: The language manager.

File

src/Form/ThemeSwitcherRuleForm.php, line 79

Class

ThemeSwitcherRuleForm
Form handler for the ThemeSwitcherRule add and edit forms.

Namespace

Drupal\theme_switcher\Form

Code

public function __construct(MessengerInterface $messenger, LoggerChannelInterface $logger, ThemeHandlerInterface $theme_handler, ExecutableManagerInterface $condition_plugin_manager, ContextRepositoryInterface $context_repository, LanguageManagerInterface $language_manager) {
  $this->messenger = $messenger;
  $this->logger = $logger;
  $this->themeHandler = $theme_handler;
  $this->conditionPluginManager = $condition_plugin_manager;
  $this->contextRepository = $context_repository;
  $this->languageManager = $language_manager;
}