Migrate API

Migrate API in Drupal 8.

Migrate API overview

The Migration API provides services for migrating data from one place to another (usually, importing it into Drupal entities).

Policy on the inclusion of Migrate in Core for 8.0.0

When the decision was made at DrupalCon Prague to remove the major version (D6/7 => D8) upgrade path in lieu of using Migrate for major

Migrate source

The migration configuration entity always contains a source key. The value is an associative array containing the name of the plugin and the

Migrate destination

The destination has a mandatory plugin key, the typical value is entity:entity_type. For example:

Migrate destination: component_entity_display

While one can use entity:entity_display to save the entire entity_display entity this is not recommended. Instead, the component_entity

Migrate destination: component_entity_form_display

While one can use entity:entity_display to save the entire entity_display entity this is not recommended. Instead, the component_entity_form

Migrate destination: entity:file

The migrate destination entity:file lets you migrate into file entities.

Migrate destination: entity:user

The migrate destination entity:user lets you migrate into user entities. If the incoming passwords are MD5 hashed (and so are Drupal

Building dynamic migrations

The Drupal 8 Migrate API uses an unusual system. Ultimately, migrations are config entities, but core modules which provide migrations do

Migrate process plugins

This guide describes the processing pipeline of a Drupal 8 migration, and core general-purpose process plugins.

Migration Tests in Drupal 8

This information came from https://www.drupal.org/node/1429136

Generating database fixtures for D8 Migrate tests

When writing tests for your D6 / D7 to D8 core migrations, use the database fixtures that are included in Drupal 8 core:

Migrating Drupal 7 Page, Article to Drupal 8 Page, Article

Overview