You are here

public function ConfigImportSubscriber::__construct in Drupal 9

Same name in this branch
  1. 9 core/lib/Drupal/Core/EventSubscriber/ConfigImportSubscriber.php \Drupal\Core\EventSubscriber\ConfigImportSubscriber::__construct()
  2. 9 core/modules/content_moderation/src/EventSubscriber/ConfigImportSubscriber.php \Drupal\content_moderation\EventSubscriber\ConfigImportSubscriber::__construct()
Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/EventSubscriber/ConfigImportSubscriber.php \Drupal\Core\EventSubscriber\ConfigImportSubscriber::__construct()

Constructs the ConfigImportSubscriber.

Parameters

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

\Drupal\Core\Extension\ModuleExtensionList $extension_list_module: The module extension list.

File

core/lib/Drupal/Core/EventSubscriber/ConfigImportSubscriber.php, line 48

Class

ConfigImportSubscriber
Config import subscriber for config import events.

Namespace

Drupal\Core\EventSubscriber

Code

public function __construct(ThemeHandlerInterface $theme_handler, ModuleExtensionList $extension_list_module) {
  $this->themeHandler = $theme_handler;
  $this->moduleExtensionList = $extension_list_module;
}