You are here

uc_attribute_field_instance.yml in Commerce Migrate 8.2

modules/ubercart/migrations/uc_attribute_field_instance.yml

File

modules/ubercart/migrations/uc_attribute_field_instance.yml
View source
  1. id: uc_attribute_field_instance
  2. label: Attribute field instance configuration
  3. migration_tags:
  4. - Drupal 6
  5. - Drupal 7
  6. - Ubercart
  7. - Configuration
  8. source:
  9. plugin: uc_attribute
  10. constants:
  11. entity_type: commerce_product_variation
  12. bundle: default
  13. field_name_prefix: attribute
  14. target_type: commerce_product_attribute_value
  15. translatable: FALSE
  16. process:
  17. field_name:
  18. -
  19. plugin: migration_lookup
  20. migration: uc_attribute_field
  21. source: aid
  22. -
  23. plugin: extract
  24. index:
  25. - 1
  26. -
  27. plugin: skip_on_empty
  28. method: row
  29. entity_type: 'constants/entity_type'
  30. bundle: 'constants/bundle'
  31. label: label
  32. description: description
  33. required: required
  34. field_machine_name:
  35. plugin: substr
  36. start: 10
  37. source: '@field_name'
  38. 'settings/handler_settings/target_bundles':
  39. plugin: get
  40. source:
  41. - '@field_machine_name'
  42. destination:
  43. plugin: entity:field_config
  44. destination_module: commerce_product
  45. migration_dependencies:
  46. required:
  47. - uc_product_attribute