diff core/modules/comment/migrations/d7_comment.yml @ 4:a9cd425dd02b

Update, including to Drupal core 8.6.10
author Chris Cannam
date Thu, 28 Feb 2019 13:11:55 +0000
parents c75dbcec494b
children 12f9dff5fda9
line wrap: on
line diff
--- a/core/modules/comment/migrations/d7_comment.yml	Thu Feb 28 11:14:44 2019 +0000
+++ b/core/modules/comment/migrations/d7_comment.yml	Thu Feb 28 13:11:55 2019 +0000
@@ -4,6 +4,7 @@
 migration_tags:
   - Drupal 7
   - Content
+class: Drupal\comment\Plugin\migrate\D7Comment
 source:
   plugin: d7_comment
   constants:
@@ -16,7 +17,16 @@
     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 @@
     -
       plugin: skip_on_empty
       method: row
+  langcode: language
   field_name: '@comment_type'
   subject: subject
   uid: uid
@@ -44,3 +55,5 @@
   required:
     - d7_node
     - d7_comment_type
+  optional:
+    - d7_node_translation