migrate_plus.migration.d7_uc_roles_license.yml 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. uuid: f3576dd2-cf66-4cfc-b41e-45d4855ac987
  2. langcode: en
  3. status: true
  4. dependencies:
  5. enforced:
  6. module:
  7. - commerce_product
  8. - commerce_license
  9. _core:
  10. default_config_hash: uBcqzDKpO358QBdXpZONLiQ13aH-bbfmWiN4yiwzKIM
  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:
  57. plugin: static_map
  58. source: rid
  59. map:
  60. 6: 2
  61. 10: 7
  62. destination:
  63. plugin: 'entity:commerce_license'
  64. destination_module: commerce_license
  65. migration_dependencies:
  66. required:
  67. - d7_users
  68. optional: { }