From 7d902ba1efdda924fe9cb46ab8303e20cb4b8f98 Mon Sep 17 00:00:00 2001 From: Mauricio Dinarte Date: Wed, 4 Dec 2024 10:13:04 -0600 Subject: [PATCH] Customize upgrade_d7_taxonomy_term migration --- .../migrations/upgrade_d7_taxonomy_term.yml | 35 ++++++++----------- 1 file changed, 15 insertions(+), 20 deletions(-) diff --git a/drupal10/web/modules/custom/tag1_migration/migrations/upgrade_d7_taxonomy_term.yml b/drupal10/web/modules/custom/tag1_migration/migrations/upgrade_d7_taxonomy_term.yml index cc54560..4c87406 100644 --- a/drupal10/web/modules/custom/tag1_migration/migrations/upgrade_d7_taxonomy_term.yml +++ b/drupal10/web/modules/custom/tag1_migration/migrations/upgrade_d7_taxonomy_term.yml @@ -1,19 +1,17 @@ -uuid: cae873b1-70c6-4843-901d-9e2f0077e73a -langcode: en -status: true -dependencies: { } -id: upgrade_d7_taxonomy_term_session_topics +id: upgrade_d7_taxonomy_term class: Drupal\migrate\Plugin\Migration -field_plugin_method: null -cck_plugin_method: null migration_tags: - 'Drupal 7' - Content -migration_group: migrate_drupal_7 -label: 'Taxonomy terms (Session topics)' + - taxonomy_term + - tag1_content +label: 'Taxonomy terms' source: + key: migrate plugin: d7_taxonomy_term - bundle: session_topics + high_water_property: + name: tid + alias: td process: tid: - @@ -25,9 +23,11 @@ process: source: tid vid: - - plugin: migration_lookup - migration: upgrade_d7_taxonomy_vocabulary + plugin: static_map source: vid + map: + 1: tags + 2: session_topics name: - plugin: get @@ -52,8 +52,7 @@ process: - plugin: migration_lookup migration: - - upgrade_d7_taxonomy_term_tags - - upgrade_d7_taxonomy_term_session_topics + - upgrade_d7_taxonomy_term parent: - plugin: default_value @@ -69,10 +68,6 @@ process: source: language destination: plugin: 'entity:taxonomy_term' - default_bundle: session_topics migration_dependencies: - required: - - upgrade_d7_taxonomy_vocabulary - optional: - - upgrade_d7_field_instance - - upgrade_d7_taxonomy_vocabulary + required: { } + optional: { }