Skip to content
Snippets Groups Projects
Commit 89ded80d authored by Mike Ryan's avatar Mike Ryan
Browse files

Issue #2667366 by mikeryan: Make migrate_plus work with 8.1.x.

parent 24ce9900
No related branches found
No related tags found
No related merge requests found
......@@ -6,6 +6,7 @@ third_party_settings:
migration_group: beer
source:
plugin: beer_comment
key: default
destination:
plugin: entity:comment
process:
......
......@@ -6,6 +6,7 @@ third_party_settings:
migration_group: beer
source:
plugin: beer_node
key: default
destination:
plugin: entity:node
process:
......
......@@ -26,6 +26,7 @@ third_party_settings:
# src/Plugin/migrate/source/BeerTerm.php.
source:
plugin: beer_term
key: default
# Every migration must also have a destination plugin, which handles writing
# the migrated data in the appropriate form for that particular kind of data.
......
......@@ -8,6 +8,7 @@ third_party_settings:
migration_group: beer
source:
plugin: beer_user
key: default
destination:
plugin: entity:user
process:
......
......@@ -12,10 +12,19 @@ use Drupal\migrate_plus\Entity\MigrationGroup;
use Drupal\migrate_plus\Event\MigrateEvents;
use Drupal\migrate_plus\Event\MigratePrepareRowEvent;
/**
* Implements hook_migration_plugins_alter().
*/
function migrate_tools_migration_plugins_alter(array &$migrations) {
// @todo: Implement group merging here.
}
/**
* Implements hook_ENTITY_TYPE_load().
*/
function migrate_plus_migration_load($migrations) {
// @todo: Replace with hook_migration_plugins()
return;
/** @var MigrationInterface $migration */
foreach ($migrations as $migration) {
// If we are pointing to a valid group, merge its properties into ours.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment