migrate_plus.migration.d7_uc_roles_license.yml 1.3 KB

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