You are here

protected function MigrationController::execute in Workbench Moderation to Content Moderation 8.2

Executes a single migration.

Parameters

\Drupal\migrate\Plugin\MigrationInterface $migration: The migration to execute.

File

src/MigrationController.php, line 88

Class

MigrationController

Namespace

Drupal\wbm2cm

Code

protected function execute(MigrationInterface $migration) {
  $executable = new MigrateExecutable($migration, new MigrateMessage(), $this->eventDispatcher);
  $executable
    ->import();
}