You are here

uc6_tax_type.yml in Commerce Migrate 3.0.x

modules/ubercart/migrations/uc6_tax_type.yml

File

modules/ubercart/migrations/uc6_tax_type.yml
View source
  1. id: uc6_tax_type
  2. label: Ubercart 6 tax types
  3. migration_tags:
  4. - Drupal 6
  5. - Ubercart
  6. - Configuration
  7. source:
  8. plugin: uc6_tax_type
  9. constants:
  10. plugin: 'custom'
  11. process:
  12. # Set to 30 characters to allow space for deduping.
  13. id:
  14. -
  15. plugin: machine_name
  16. source: name
  17. -
  18. plugin: make_unique_entity_field
  19. entity_type: commerce_tax_type
  20. field: id
  21. length: 30
  22. label: name
  23. 'plugin': 'constants/plugin'
  24. 'configuration/rates/0/id': '@id'
  25. 'configuration/rates/0/label': name
  26. 'configuration/rates/0/amount': rate
  27. 'configuration/territories/0/country_code': country_iso_code_2
  28. destination:
  29. plugin: entity:commerce_tax_type
  30. destination_module: commerce_tax