From 5358840d48678f0c004e852b8c046159ac1a1871 Mon Sep 17 00:00:00 2001 From: berliner Date: Fri, 15 Mar 2024 23:14:51 +0100 Subject: [PATCH] HPC-9281: Improve method description, fix default migration config --- .../migrate_plus.migration.articles_hpc_content_module.yml | 2 +- html/modules/custom/ghi_content/src/Import/ImportManager.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/html/modules/custom/ghi_content/config/install/migrate_plus.migration.articles_hpc_content_module.yml b/html/modules/custom/ghi_content/config/install/migrate_plus.migration.articles_hpc_content_module.yml index 1701a33e0..506b10861 100644 --- a/html/modules/custom/ghi_content/config/install/migrate_plus.migration.articles_hpc_content_module.yml +++ b/html/modules/custom/ghi_content/config/install/migrate_plus.migration.articles_hpc_content_module.yml @@ -85,7 +85,7 @@ process: - plugin: skip_on_empty method: process - source: tags + source: content_space/title - plugin: entity_lookup entity_type: taxonomy_term diff --git a/html/modules/custom/ghi_content/src/Import/ImportManager.php b/html/modules/custom/ghi_content/src/Import/ImportManager.php index 4dee854e9..821f02b93 100644 --- a/html/modules/custom/ghi_content/src/Import/ImportManager.php +++ b/html/modules/custom/ghi_content/src/Import/ImportManager.php @@ -486,7 +486,7 @@ public function importDocumentChapters(NodeInterface $node, RemoteDocumentInterf } /** - * Import tags for an content object. + * Import tags for a content entity. * * @param \Drupal\node\NodeInterface $node * The node for which tags should be imported/synced. @@ -540,7 +540,7 @@ public function importTags(NodeInterface $node, RemoteContentInterface $content, } /** - * Import tags for an content object. + * Import the content space for a content entity. * * @param \Drupal\node\NodeInterface $node * The node for which tags should be imported/synced.