protected function MigrateManifest::executeMigration in Migrate Manifest 8
Same name and namespace in other branches
- 8.2 src/MigrateManifest.php \Drupal\migrate_manifest\MigrateManifest::executeMigration()
- 3.x src/MigrateManifest.php \Drupal\migrate_manifest\MigrateManifest::executeMigration()
Execute a single migration.
Parameters
\Drupal\migrate\Plugin\MigrationInterface $migration: The migration to run.
Return value
\Drupal\migrate_manifest\MigrateExecutable The migration executable.
1 call to MigrateManifest::executeMigration()
- MigrateManifest::import in src/
MigrateManifest.php - Drush execution method. Runs imports on the supplied manifest.
File
- src/
MigrateManifest.php, line 188
Class
Namespace
Drupal\migrate_manifestCode
protected function executeMigration(MigrationInterface $migration) {
$run_migration = unserialize(serialize($migration));
$this->logger
->notice(dt('Running @id', [
'@id' => $run_migration
->id(),
]));
$executable = new MigrateExecutable($run_migration, new DrushLogMigrateMessage($this->logger));
// drush_op() provides --simulate support.
return drush_op([
$executable,
'import',
]);
}