Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / web / core / modules / comment / migrations / d7_comment.yml
index 69c94ae520d9a3e2fda6a5752ab3581830e73570..29c439e98ae9608f024155a718321c99d3637967 100644 (file)
@@ -4,6 +4,7 @@ audit: true
 migration_tags:
   - Drupal 7
   - Content
+class: Drupal\comment\Plugin\migrate\D7Comment
 source:
   plugin: d7_comment
   constants:
@@ -16,7 +17,16 @@ process:
     plugin: migration_lookup
     migration: d7_comment
     source: pid
-  entity_id: nid
+  entity_id:
+    -
+      plugin: migration_lookup
+      migration:
+        - d7_node
+        - d7_node_translation
+      source: nid
+    -
+      plugin: skip_on_empty
+      method: row
   entity_type: 'constants/entity_type'
   comment_type:
     -
@@ -26,6 +36,7 @@ process:
     -
       plugin: skip_on_empty
       method: row
+  langcode: language
   field_name: '@comment_type'
   subject: subject
   uid: uid
@@ -44,3 +55,5 @@ migration_dependencies:
   required:
     - d7_node
     - d7_comment_type
+  optional:
+    - d7_node_translation