uc6_product_variation_type.yml in Commerce Migrate 3.1.x
Same filename and directory in other branches
modules/ubercart/migrations/uc6_product_variation_type.yml
File
modules/ubercart/migrations/uc6_product_variation_type.ymlView source
- id: uc6_product_variation_type
- label: Ubercart product variation type
- migration_tags:
- - Drupal 6
- - Ubercart
- - Configuration
- source:
- plugin: uc6_product_variation_type
- constants:
- generate_title: false
- line_item_type: product_variation
- order_item_type: default
- has_dimensions: purchasable_entity_dimensions
- shippable: purchasable_entity_shippable
- process:
- id: type
- revision: revision
- type: type
- label: name
- description: description
- help: help
- generateTitle: constants/generate_title
- lineItemType: constants/line_item_type'
- orderItemType:
- plugin: default_value
- source: line_item_type
- default_value: default
- has_dimensions:
- -
- plugin: skip_on_empty
- source: has_dimensions
- method: process
- -
- plugin: get
- source: constants/has_dimensions
- shippable:
- -
- plugin: skip_on_empty
- source: shippable
- method: process
- -
- plugin: get
- source: constants/shippable
- traits:
- plugin: callback
- callable: array_filter
- source:
- - '@has_dimensions'
- - '@shippable'
- destination:
- plugin: entity:commerce_product_variation_type
- destination_module: commerce_product