You are here

import_comment_comment.yml in Import 8.2

migrations/import_comment_comment.yml

File

migrations/import_comment_comment.yml
View source
  1. class: \Drupal\migrate\Plugin\Migration
  2. id: import_comment_comment
  3. label: 'Import comment:comment'
  4. source:
  5. plugin: node_comment
  6. path: '../data/import.comment.comment.csv'
  7. header_row_count: 1
  8. keys: [Subject]
  9. destination:
  10. plugin: 'entity:comment'
  11. process:
  12. comment_type: { plugin: default_value, default_value: comment }
  13. subject: Subject
  14. comment_body/value: Body
  15. entity_id: { plugin: migration, migration: import_node_article, source: Content }
  16. provider: import
  17. migration_dependencies:
  18. required: [import_node_article]
  19. optional: [import_node_article]