You are here

d7_comment.yml in Drupal 8

Same filename and directory in other branches
  1. 9 core/modules/comment/migrations/d7_comment.yml
core/modules/comment/migrations/d7_comment.yml

File

core/modules/comment/migrations/d7_comment.yml
View source
  1. id: d7_comment
  2. label: Comments
  3. audit: true
  4. migration_tags:
  5. - Drupal 7
  6. - Content
  7. class: Drupal\comment\Plugin\migrate\D7Comment
  8. source:
  9. plugin: d7_comment
  10. constants:
  11. entity_type: node
  12. process:
  13. # If you are using this file to build a custom migration consider removing
  14. # the cid field to allow incremental migrations.
  15. cid: cid
  16. pid:
  17. -
  18. plugin: skip_on_empty
  19. method: process
  20. source: pid
  21. -
  22. plugin: migration_lookup
  23. migration: d7_comment
  24. entity_id:
  25. -
  26. plugin: migration_lookup
  27. migration:
  28. - d7_node_complete
  29. - d7_node
  30. - d7_node_translation
  31. source: nid
  32. -
  33. plugin: node_complete_node_lookup
  34. -
  35. plugin: skip_on_empty
  36. method: row
  37. entity_type: 'constants/entity_type'
  38. comment_type:
  39. -
  40. plugin: migration_lookup
  41. source: node_type
  42. migration: d7_comment_type
  43. -
  44. plugin: skip_on_empty
  45. method: row
  46. # Comments migrated from Drupal 6 to Drupal 7 may not have a language.
  47. langcode:
  48. plugin: default_value
  49. source: language
  50. default_value: und
  51. field_name: '@comment_type'
  52. subject: subject
  53. uid: uid
  54. name: name
  55. mail: mail
  56. homepage: homepage
  57. hostname: hostname
  58. created: created
  59. changed: changed
  60. status: status
  61. thread: thread
  62. comment_body: comment_body
  63. destination:
  64. plugin: entity:comment
  65. migration_dependencies:
  66. required:
  67. - d7_node
  68. - d7_comment_type
  69. optional:
  70. - d7_node_translation