commerce1_product_attribute.yml in Commerce Migrate 8.2
Same filename and directory in other branches
modules/commerce/migrations/commerce1_product_attribute.yml
File
modules/commerce/migrations/commerce1_product_attribute.ymlView source
- id: commerce1_product_attribute
- label: Commerce attribute
- migration_tags:
- - Drupal 7
- - Commerce
- - Configuration
- source:
- plugin: commerce1_attribute
- process:
- # Set to true if row has an attribute.
- attribute:
- plugin: skip_on_empty
- method: row
- source: attribute
- # Use 29 characters so there are 3 spaces for the unique suffix.
- id:
- plugin: make_unique_entity_field
- entity_type: commerce_product_attribute
- field: id
- source: machine_name
- length: 29
- label: name
- elementType:
- plugin: static_map
- bypass: true
- source: display
- map:
- # Text field
- 0: text
- # Select box
- 1: select
- # Radio buttons
- 2: radios
- # Checkboxes
- 3: checkbox
- destination:
- plugin: entity:commerce_product_attribute
- destination_module: commerce_product
- migration_dependencies:
- required:
- - d7_field