migration_tags:
- Drupal 7
- Content
+class: Drupal\comment\Plugin\migrate\D7Comment
source:
plugin: d7_comment
constants:
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:
-
-
plugin: skip_on_empty
method: row
+ langcode: language
field_name: '@comment_type'
subject: subject
uid: uid
required:
- d7_node
- d7_comment_type
+ optional:
+ - d7_node_translation