You are here

uc7_product_variation_type.yml in Commerce Migrate 3.1.x

modules/ubercart/migrations/uc7_product_variation_type.yml

File

modules/ubercart/migrations/uc7_product_variation_type.yml
View source
  1. id: uc7_product_variation_type
  2. label: Ubercart product variation type
  3. migration_tags:
  4. - Drupal 7
  5. - Ubercart
  6. - Configuration
  7. source:
  8. plugin: uc7_product_variation_type
  9. constants:
  10. generate_title: false
  11. line_item_type: product_variation
  12. order_item_type: default
  13. has_dimensions: purchasable_entity_dimensions
  14. shippable: purchasable_entity_shippable
  15. process:
  16. id: type
  17. revision: revision
  18. type: type
  19. label: name
  20. description: description
  21. help: help
  22. generateTitle: constants/generate_title
  23. lineItemType: constants/line_item_type
  24. orderItemType:
  25. plugin: default_value
  26. source: line_item_type
  27. default_value: default
  28. has_dimensions:
  29. -
  30. plugin: skip_on_empty
  31. source: has_dimensions
  32. method: process
  33. -
  34. plugin: get
  35. source: constants/has_dimensions
  36. shippable:
  37. -
  38. plugin: skip_on_empty
  39. source: shippable
  40. method: process
  41. -
  42. plugin: get
  43. source: constants/shippable
  44. traits:
  45. plugin: callback
  46. callable: array_filter
  47. source:
  48. - '@has_dimensions'
  49. - '@shippable'
  50. destination:
  51. plugin: entity:commerce_product_variation_type
  52. destination_module: commerce_product