migrate_plus.migration.d7_uc_roles_license.yml 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. uuid: 639535d6-8438-46f1-b3d1-e418be168295
  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: product_variation_id
  55. destination:
  56. plugin: 'entity:commerce_license'
  57. destination_module: commerce_license
  58. migration_dependencies:
  59. required:
  60. - d7_users
  61. optional: { }