import_comment_comment.yml in Import 8.2
migrations/import_comment_comment.yml
File
migrations/import_comment_comment.ymlView source
- class: \Drupal\migrate\Plugin\Migration
- id: import_comment_comment
- label: 'Import comment:comment'
- source:
- plugin: node_comment
- path: '../data/import.comment.comment.csv'
- header_row_count: 1
- keys: [Subject]
- destination:
- plugin: 'entity:comment'
- process:
- comment_type: { plugin: default_value, default_value: comment }
- subject: Subject
- comment_body/value: Body
- entity_id: { plugin: migration, migration: import_node_article, source: Content }
- provider: import
- migration_dependencies:
- required: [import_node_article]
- optional: [import_node_article]