You are here

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

modules/merci_migration/migrations/merci_resource.yml

File

modules/merci_migration/migrations/merci_resource.yml
View source
  1. # modules/custom/merci/modules/merci_migration/migrations/merci_resource.yml
  2. id: merci_resource
  3. label: Merci Resource
  4. migration_group: Merci
  5. migration_tags:
  6. - Custom
  7. source:
  8. plugin: merci_resource
  9. process:
  10. id: tnid
  11. langcode:
  12. plugin: default_value
  13. source: language
  14. default_value: en
  15. label: title
  16. title: title
  17. uid:
  18. -
  19. plugin: get
  20. source: node_uid
  21. -
  22. plugin: default_value
  23. default_value: 1
  24. created: created
  25. changed: changed
  26. 'body':
  27. plugin: iterator
  28. source: body
  29. process:
  30. format:
  31. plugin: static_map
  32. bypass: true
  33. source: format
  34. map:
  35. 1: basic_html
  36. 2: full_html
  37. 'value': value
  38. 'summary': summary
  39. 'field_merci_location/target_id':
  40. -
  41. plugin: default_value
  42. default_value: 'merci_hours_operation'
  43. -
  44. plugin: migration_lookup
  45. migration: merci_location
  46. 'field_merci_grouping/target_id':
  47. plugin: migration_lookup
  48. migration: merci_permissions
  49. source: type
  50. field_reservable_status:
  51. plugin: static_map
  52. source: merci_default_availability
  53. map:
  54. 1: 1
  55. 2: 0
  56. 3: 0
  57. 4: 0
  58. destination:
  59. plugin: 'entity:node'
  60. default_bundle: merci_resource
  61. migration_dependencies:
  62. required:
  63. - merci_location
  64. - merci_permissions