Skip to content

Instantly share code, notes, and snippets.

@victor-shelepen
Created January 1, 2017 20:23
Show Gist options
  • Save victor-shelepen/77f3018018dfc074966a2d623f07aa7e to your computer and use it in GitHub Desktop.
Save victor-shelepen/77f3018018dfc074966a2d623f07aa7e to your computer and use it in GitHub Desktop.
Migrate Run Programatically
$migration = \Drupal::service('plugin.manager.migration')->createInstance($migration_id);
$executable = new MigrateExecutable($migration, new MigrateMessage());
$executable->import().
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment