d6_comment.yml

Same filename in other branches
  1. 8.9.x core/modules/comment/migrations/d6_comment.yml
  2. 10 core/modules/comment/migrations/d6_comment.yml
  3. 11.x core/modules/comment/migrations/d6_comment.yml
core/modules/comment/migrations/d6_comment.yml

File

core/modules/comment/migrations/d6_comment.yml

View source
  1. id: d6_comment
  2. label: Comments
  3. audit: true
  4. migration_tags:
  5. - Drupal 6
  6. - Content
  7. source:
  8. plugin: d6_comment
  9. constants:
  10. entity_type: node
  11. process:
  12. # If you are using this file to build a custom migration consider removing
  13. # the cid field to allow incremental migrations.
  14. cid: cid
  15. pid:
  16. -
  17. plugin: skip_on_empty
  18. method: process
  19. source: pid
  20. -
  21. plugin: migration_lookup
  22. migration: d6_comment
  23. entity_id:
  24. -
  25. plugin: migration_lookup
  26. migration:
  27. - d6_node_complete
  28. - d6_node
  29. - d6_node_translation
  30. source: nid
  31. -
  32. plugin: node_complete_node_lookup
  33. -
  34. plugin: skip_on_empty
  35. method: row
  36. entity_type: 'constants/entity_type'
  37. comment_type:
  38. -
  39. plugin: migration_lookup
  40. source: type
  41. migration: d6_comment_type
  42. -
  43. plugin: skip_on_empty
  44. method: row
  45. langcode: language
  46. field_name: '@comment_type'
  47. subject: subject
  48. uid: uid
  49. name: name
  50. mail: mail
  51. homepage: homepage
  52. hostname: hostname
  53. created: timestamp
  54. changed: timestamp
  55. status: status #In D6, published=0. We reverse the value in prepareRow.
  56. thread: thread
  57. 'comment_body/value': comment
  58. 'comment_body/format':
  59. plugin: migration_lookup
  60. migration: d6_filter_format
  61. source: format
  62. destination:
  63. plugin: entity:comment
  64. migration_dependencies:
  65. required:
  66. - d6_node
  67. - d6_comment_type
  68. - d6_comment_entity_display
  69. - d6_comment_entity_form_display
  70. - d6_user
  71. - d6_filter_format
  72. optional:
  73. - d6_node_translation

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.