You are here

public function MigrateHelper::import in Panopoly 8.2

Imports the given migrations in order.

Parameters

string[] $migration_ids: List of migration ids to import.

File

modules/panopoly/panopoly_core/src/MigrateHelper.php, line 71

Class

MigrateHelper
Service with some helper functions for working with migrate.

Namespace

Drupal\panopoly_core

Code

public function import(array $migration_ids) {
  $migrations = $this->migrationManager
    ->createInstances($migration_ids);
  foreach ($migrations as $migration) {
    $executable = $this
      ->createExecutable($migration);
    $executable
      ->import();
  }
}