You are here

merci_reservation.yml in MERCI (Manage Equipment Reservations, Checkout and Inventory) 8.2

modules/merci_migration/migrations/merci_reservation.yml

File

modules/merci_migration/migrations/merci_reservation.yml
View source
  1. # modules/custom/merci/modules/merci_migration/migrations/merci_reservation.yml
  2. id: merci_reservation
  3. label: Merci Reservation
  4. migration_group: Merci
  5. migration_tags:
  6. - Custom
  7. source:
  8. plugin: merci_reservation
  9. node_type: merci_reservation
  10. process:
  11. id: tnid
  12. langcode:
  13. plugin: default_value
  14. source: language
  15. default_value: en
  16. label: title
  17. title: title
  18. uid:
  19. -
  20. plugin: get
  21. source: node_uid
  22. -
  23. plugin: default_value
  24. default_value: 1
  25. created: created
  26. changed: changed
  27. 'body':
  28. plugin: iterator
  29. source: body
  30. process:
  31. format:
  32. plugin: static_map
  33. bypass: true
  34. source: format
  35. map:
  36. 1: basic_html
  37. 2: full_html
  38. 'value': value
  39. 'summary': summary
  40. 'field_merci_item':
  41. plugin: iterator
  42. source: merci_reservation_items
  43. process:
  44. target_id:
  45. plugin: migration_lookup
  46. migration: merci_line_item
  47. source: did
  48. destination:
  49. plugin: 'entity:node'
  50. default_bundle: reservation
  51. migration_dependencies:
  52. required:
  53. - merci_line_item