You are here

public function MigrationController::__construct in Workbench Moderation to Content Moderation 8.2

MigrationController constructor.

Parameters

\Drupal\migrate\Plugin\MigrationPluginManagerInterface $migration_manager: The migration plugin manager service.

\Symfony\Component\EventDispatcher\EventDispatcherInterface $event_dispatcher: The event dispatcher service.

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

\Drupal\Core\Entity\EntityTypeBundleInfoInterface $entity_type_bundle_info: The entity type bundle info service.

\Drupal\Core\Entity\EntityFieldManagerInterface $entity_field_manager: The entity field manager service.

\Drupal\Core\StringTranslation\TranslationInterface $translation: The string translation service.

File

src/MigrationController.php, line 73

Class

MigrationController

Namespace

Drupal\wbm2cm

Code

public function __construct(MigrationPluginManagerInterface $migration_manager, EventDispatcherInterface $event_dispatcher, EntityTypeManagerInterface $entity_type_manager, EntityTypeBundleInfoInterface $entity_type_bundle_info, EntityFieldManagerInterface $entity_field_manager, TranslationInterface $translation) {
  $this->migrationManager = $migration_manager;
  $this->eventDispatcher = $event_dispatcher;
  $this->entityTypeManager = $entity_type_manager;
  $this->entityTypeBundleInfo = $entity_type_bundle_info;
  $this->entityFieldManager = $entity_field_manager;
  $this
    ->setStringTranslation($translation);
}