uc_attribute_field_instance.yml in Commerce Migrate 8.2
Same filename and directory in other branches
modules/ubercart/migrations/uc_attribute_field_instance.yml
File
modules/ubercart/migrations/uc_attribute_field_instance.ymlView source
- id: uc_attribute_field_instance
- label: Attribute field instance configuration
- migration_tags:
- - Drupal 6
- - Drupal 7
- - Ubercart
- - Configuration
- source:
- plugin: uc_attribute
- constants:
- entity_type: commerce_product_variation
- bundle: default
- field_name_prefix: attribute
- target_type: commerce_product_attribute_value
- translatable: FALSE
- process:
- field_name:
- -
- plugin: migration_lookup
- migration: uc_attribute_field
- source: aid
- -
- plugin: extract
- index:
- - 1
- -
- plugin: skip_on_empty
- method: row
- entity_type: 'constants/entity_type'
- bundle: 'constants/bundle'
- label: label
- description: description
- required: required
- field_machine_name:
- plugin: substr
- start: 10
- source: '@field_name'
- 'settings/handler_settings/target_bundles':
- plugin: get
- source:
- - '@field_machine_name'
- destination:
- plugin: entity:field_config
- destination_module: commerce_product
- migration_dependencies:
- required:
- - uc_product_attribute