Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / web / core / modules / comment / migrations / d6_comment.yml
index 32978de82eb7ba57bddc2201f29835e0bc3be1d8..278e6ee21ab41513ed30ab6a5c256447870d1d5d 100644 (file)
@@ -16,7 +16,16 @@ process:
     plugin: migration_lookup
     migration: d6_comment
     source: pid
-  entity_id: nid
+  entity_id:
+    -
+      plugin: migration_lookup
+      migration:
+        - d6_node
+        - d6_node_translation
+      source: nid
+    -
+      plugin: skip_on_empty
+      method: row
   entity_type: 'constants/entity_type'
   comment_type:
     -
@@ -26,6 +35,7 @@ process:
     -
       plugin: skip_on_empty
       method: row
+  langcode: language
   field_name: '@comment_type'
   subject: subject
   uid: uid
@@ -52,3 +62,5 @@ migration_dependencies:
     - d6_comment_entity_form_display
     - d6_user
     - d6_filter_format
+  optional:
+    - d6_node_translation