You are here

beer_comment.yml in Migrate Plus 8.4

Same filename and directory in other branches
  1. 8.5 migrate_example/migrations/beer_comment.yml
migrate_example/migrations/beer_comment.yml

File

migrate_example/migrations/beer_comment.yml
View source
  1. # Migration configuration for beer comments. No new concepts here.
  2. id: beer_comment
  3. label: Comments on beers
  4. migration_group: beer
  5. source:
  6. plugin: beer_comment
  7. destination:
  8. plugin: entity:comment
  9. process:
  10. pid:
  11. plugin: migration_lookup
  12. migration: beer_comment
  13. source: cid_parent
  14. entity_id:
  15. plugin: migration_lookup
  16. migration: beer_node
  17. source: bid
  18. entity_type:
  19. plugin: default_value
  20. default_value: node
  21. field_name:
  22. plugin: default_value
  23. default_value: field_comments
  24. comment_type:
  25. plugin: default_value
  26. default_value: node_comments
  27. subject: subject
  28. uid:
  29. plugin: migration_lookup
  30. migration: beer_user
  31. source: aid
  32. name: name
  33. mail: mail
  34. status:
  35. plugin: default_value
  36. default_value: 1
  37. 'comment_body/value': body
  38. migration_dependencies:
  39. required:
  40. - beer_node
  41. - beer_user
  42. dependencies:
  43. enforced:
  44. module:
  45. - migrate_example