You are here

commerce1_product_type.yml in Commerce Migrate 3.1.x

modules/commerce/migrations/commerce1_product_type.yml

File

modules/commerce/migrations/commerce1_product_type.yml
View source
  1. id: commerce1_product_type
  2. label: Commerce product type
  3. migration_tags:
  4. - Drupal 7
  5. - Commerce
  6. - Configuration
  7. source:
  8. plugin: commerce1_product_display_type
  9. variations:
  10. matching: true
  11. default: default
  12. process:
  13. id: type
  14. exists:
  15. -
  16. plugin: entity_exists
  17. source: type
  18. entity_type: commerce_product_type
  19. -
  20. plugin: callback
  21. callable: is_bool
  22. -
  23. plugin: skip_on_empty
  24. method: row
  25. label: name
  26. description: description
  27. help: help
  28. variationType:
  29. -
  30. plugin: commerce1_resolve_product_variation_type
  31. source: type
  32. variations:
  33. matching: true
  34. default: default
  35. -
  36. plugin: skip_on_empty
  37. method: row
  38. injectVariationFields:
  39. plugin: default_value
  40. default_value: 1
  41. destination:
  42. plugin: 'entity:commerce_product_type'
  43. destination_module: commerce_product