migrate_plus.migration.d7_uc_roles_license.yml 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. uuid: 2e55cb47-aafc-4e2b-96ff-dcc3e3db6893
  2. langcode: en
  3. status: true
  4. dependencies:
  5. enforced:
  6. module:
  7. - commerce_product
  8. - commerce_license
  9. id: d7_uc_roles_license
  10. class: null
  11. field_plugin_method: null
  12. cck_plugin_method: null
  13. migration_tags:
  14. - 'Drupal 7'
  15. - Ubercart
  16. - Materio
  17. migration_group: d7_materio
  18. label: 'License from D7 Ubercart Roles.'
  19. source:
  20. plugin: d7_uc_license_role
  21. process:
  22. type:
  23. plugin: default_value
  24. default_value: role
  25. uid:
  26. -
  27. plugin: skip_on_empty
  28. method: row
  29. source: uid
  30. -
  31. plugin: migration_lookup
  32. migration: d7_users
  33. no_stub: true
  34. state: state
  35. created: created
  36. granted: created
  37. renewed: renewed
  38. changed: renewed
  39. license_role:
  40. plugin: static_map
  41. source: rid
  42. map:
  43. 6: adherent
  44. 10: student
  45. expiration_type:
  46. plugin: default_value
  47. default_value:
  48. target_plugin_id: rolling_interval
  49. target_plugin_configuration:
  50. interval:
  51. interval: 1
  52. period: year
  53. expires: expiration
  54. product_variation:
  55. plugin: static_map
  56. source: rid
  57. map:
  58. 6: 2
  59. 10: 7
  60. destination:
  61. plugin: 'entity:commerce_license'
  62. destination_module: commerce_license
  63. migration_dependencies:
  64. required:
  65. - d7_users
  66. optional: { }