You are here

d6_comment.yml in Zircon Profile 8

Same filename and directory in other branches
  1. 8.0 core/modules/comment/migration_templates/d6_comment.yml
core/modules/comment/migration_templates/d6_comment.yml

File

core/modules/comment/migration_templates/d6_comment.yml
View source
  1. id: d6_comment
  2. label: Comments
  3. migration_tags:
  4. - Drupal 6
  5. source:
  6. plugin: d6_comment
  7. constants:
  8. entity_type: node
  9. process:
  10. cid: cid
  11. pid:
  12. plugin: migration
  13. migration: d6_comment
  14. source: pid
  15. entity_id: nid
  16. entity_type: 'constants/entity_type'
  17. # field_name & comment_type is calculated in
  18. # \Drupal\migrate_drupal\Plugin\migrate\source\d6\Comment::prepareRow()
  19. field_name: field_name
  20. comment_type: comment_type
  21. subject: subject
  22. uid: uid
  23. name: name
  24. mail: mail
  25. homepage: homepage
  26. hostname: hostname
  27. created: timestamp
  28. changed: timestamp
  29. status: status #In D6, published=0. We reverse the value in prepareRow.
  30. thread: thread
  31. 'comment_body/value': comment
  32. 'comment_body/format':
  33. plugin: migration
  34. migration: d6_filter_format
  35. source: format
  36. destination:
  37. plugin: entity:comment
  38. migration_dependencies:
  39. required:
  40. - d6_node:*
  41. - d6_comment_type
  42. - d6_comment_entity_display
  43. - d6_comment_entity_form_display
  44. - d6_user
  45. - d6_filter_format