From f2f54b0c34cc175c0cb5e00a4a34693a094b2aef Mon Sep 17 00:00:00 2001 From: Jacob Sanford Date: Thu, 11 Jul 2024 15:52:32 -0300 Subject: [PATCH] LOYALIST-58 Add nid --- .../migrate_plus.migration.0_loyalist_migrate_loyalist_items.yml | 1 + .../loyalist_migrate/src/Plugin/migrate/source/LoyalistItem.php | 1 + 2 files changed, 2 insertions(+) diff --git a/custom/modules/loyalist_migrate/config/install/migrate_plus.migration.0_loyalist_migrate_loyalist_items.yml b/custom/modules/loyalist_migrate/config/install/migrate_plus.migration.0_loyalist_migrate_loyalist_items.yml index 1a38acc..c4e04ab 100644 --- a/custom/modules/loyalist_migrate/config/install/migrate_plus.migration.0_loyalist_migrate_loyalist_items.yml +++ b/custom/modules/loyalist_migrate/config/install/migrate_plus.migration.0_loyalist_migrate_loyalist_items.yml @@ -9,6 +9,7 @@ source: plugin: loyalist_item key: migrate process: + nid: nid title: plugin: callback callable: trim diff --git a/custom/modules/loyalist_migrate/src/Plugin/migrate/source/LoyalistItem.php b/custom/modules/loyalist_migrate/src/Plugin/migrate/source/LoyalistItem.php index 8574687..14d89cc 100644 --- a/custom/modules/loyalist_migrate/src/Plugin/migrate/source/LoyalistItem.php +++ b/custom/modules/loyalist_migrate/src/Plugin/migrate/source/LoyalistItem.php @@ -58,6 +58,7 @@ public function fields() // This maps the field from their name above to a destination field name that is specified in the process section. I generally keep them the same. $fields = [ 'title' => 'title', + 'nid' => 'nid', 'field_accompanying_record_value' => 'field_accompanying_record_value', 'issuing_body_name' => 'issuing_body_name', 'subject_heading_name' => 'subject_heading_name',