You are here

uc7_product_type.yml in Commerce Migrate 3.1.x

modules/ubercart/migrations/uc7_product_type.yml

File

modules/ubercart/migrations/uc7_product_type.yml
View source
  1. id: uc7_product_type
  2. label: Ubercart product type
  3. migration_tags:
  4. - Drupal 7
  5. - Ubercart
  6. - Configuration
  7. source:
  8. plugin: uc7_product_type
  9. constants:
  10. line_item_type: product_variations
  11. # Do not generate a title.
  12. generate_title: false
  13. process:
  14. id: type
  15. exists:
  16. -
  17. plugin: entity_exists
  18. source: type
  19. entity_type: commerce_product_type
  20. -
  21. plugin: callback
  22. callable: is_bool
  23. -
  24. plugin: skip_on_empty
  25. method: row
  26. label: name
  27. description: description
  28. help: help
  29. variationType: type
  30. lineItemType: 'constants/line_item_type'
  31. generateTitle: 'constants/false'
  32. injectVariationFields:
  33. plugin: default_value
  34. default_value: 1
  35. destination:
  36. plugin: 'entity:commerce_product_type'
  37. destination_module: commerce_product