You are here

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

Executes all migrations for a particular step of the wbm2cm process.

Parameters

string $which: The step to execute. Can be one of 'save', 'clear', or 'restore'.

Return value

\Drupal\migrate\Plugin\MigrationInterface[] The executed migrations.

1 call to MigrationController::executeStep()
MigrationController::executeStepWithCounts in src/MigrationController.php
Executes all migrations for a particular step of the wbm2cm process and returns imported counts for each executed migration.

File

src/MigrationController.php, line 102

Class

MigrationController

Namespace

Drupal\wbm2cm

Code

public function executeStep($which) {
  $migrations = $this->migrationManager
    ->createInstances("wbm2cm_{$which}");
  array_walk($migrations, [
    $this,
    'execute',
  ]);
  return $migrations;
}