Security update for Core, with self-updated composer
[yaffs-website] / web / core / modules / comment / migration_templates / d6_comment.yml
index 06820d462a5d1aa6ac2ab276a101b1709fae6fb5..161820eeaacb9cf57c426ccf60a522c77a76be20 100644 (file)
@@ -16,10 +16,15 @@ process:
     source: pid
   entity_id: nid
   entity_type: 'constants/entity_type'
-  # field_name & comment_type is calculated in
-  # \Drupal\migrate_drupal\Plugin\migrate\source\d6\Comment::prepareRow()
-  field_name: field_name
-  comment_type: comment_type
+  comment_type:
+    -
+      plugin: migration_lookup
+      source: type
+      migration: d6_comment_type
+    -
+      plugin: skip_on_empty
+      method: row
+  field_name: '@comment_type'
   subject: subject
   uid: uid
   name: name