You are here

public function MigrateManager::__construct in Workbench Moderation to Content Moderation 8

Instantiate the MigrateManager service.

Parameters

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

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

\Drupal\Core\Extension\ModuleInstallerInterface $module_installer: The module installer.

\Drupal\Core\KeyValueStore\KeyValueFactoryInterface $key_value_factory: The key value store factory.

\Psr\Log\LoggerInterface $logger: A logger instance.

File

src/MigrateManager.php, line 86

Class

MigrateManager
Manages migrating from WBM to CM.

Namespace

Drupal\wbm2cm

Code

public function __construct(ConfigFactoryInterface $config_factory, EntityTypeManagerInterface $entity_type_manager, ModuleInstallerInterface $module_installer, KeyValueFactoryInterface $key_value_factory, LoggerInterface $logger) {
  $this->configFactory = $config_factory;
  $this->entityTypeManager = $entity_type_manager;
  $this->moduleInstaller = $module_installer;
  $this->migrateStore = $key_value_factory
    ->get('wbm2cm_migrate');
  $this->stateMapStore = $key_value_factory
    ->get('wbm2cm_migrate_state_map');
  $this->logger = $logger;
}