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/modules/content_moderation/src/EventSubscriber/ConfigImportSubscriber.php \Drupal\content_moderation\EventSubscriber\ConfigImportSubscriber::__construct()

Constructs the event subscriber.

Parameters

\Drupal\Core\Config\ConfigManagerInterface $config_manager: The config manager

\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.

File

core/modules/content_moderation/src/EventSubscriber/ConfigImportSubscriber.php, line 38

Class

ConfigImportSubscriber
Check moderation states are not being used before updating workflow config.

Namespace

Drupal\content_moderation\EventSubscriber

Code

public function __construct(ConfigManagerInterface $config_manager, EntityTypeManagerInterface $entity_type_manager) {
  $this->configManager = $config_manager;
  $this->entityTypeManager = $entity_type_manager;
}