Skip to content

Instantly share code, notes, and snippets.

@jonathanfranks
Created June 19, 2017 22:04
Show Gist options
  • Save jonathanfranks/5d1c4073ac53afab578237e2eca33d21 to your computer and use it in GitHub Desktop.
Save jonathanfranks/5d1c4073ac53afab578237e2eca33d21 to your computer and use it in GitHub Desktop.
$migration_id = 'ncsbn_migrate_import_menu_items';
$migration = \Drupal::service('plugin.manager.migration')->createInstance($migration_id);
$executable = new \Drupal\migrate\MigrateExecutable($migration, new \Drupal\migrate\MigrateMessage());
$executable->import();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment