function drush_migrate_manifest

7.x migrate.d8.drush.inc drush_migrate_manifest($manifest)

Import from a manifest file.

This command allows you to specify a list of migrations and their config in a YAML file. An example of a simple migration may look like this:

 - d6_action_settings
 - d6_aggregator_feed

You can also provide configuration to a migration for both source and the destination. An example as such:

 - d6_file:
   source:
     conf_path: sites/assets
   destination:
     source_base_path: destination/base/path
     destination_path_property: uri
 - d6_action_settings

Parameters

string $manifest: The path to the manifest file.

File

commands/core/migrate.d8.drush.inc, line 57
Migrate content into Drupal 8+.

Code

function drush_migrate_manifest($manifest) {
  try {
    return drush_migrate_manifest_get_class($manifest)->import();
  }
  catch (\Exception $e) {
    drush_set_error('MIGRATE_ERROR', $e->getMessage());
  }

  drush_invoke_process('@self', 'cache-rebuild', array(), array(), FALSE);
}