You are here

shopify_taxonomy_vocabulary.yml in Commerce Migrate 3.1.x

modules/shopify/migrations/shopify_taxonomy_vocabulary.yml

File

modules/shopify/migrations/shopify_taxonomy_vocabulary.yml
View source
  1. # Creates 'Tags' vocabularies, if it do not exist. This migration can be removed
  2. # if the necessary vocabulary exist on the destination site. Other vocabularies
  3. # can be created by adding extra rows to the source field 'data_rows'.
  4. id: shopify_taxonomy_vocabulary
  5. label: Create default vocabularies for Shopify.
  6. migration_group: commerce_migrate_shopify
  7. migration_tags:
  8. - Shopify
  9. - Configuration
  10. source:
  11. plugin: embedded_data
  12. # Add or remove rows from the data_rows as needed.
  13. data_rows:
  14. -
  15. vid: tags
  16. name: Tags
  17. description: Tags
  18. hierarchy: 0
  19. weight: 0
  20. ids:
  21. vid:
  22. type: string
  23. source_module: taxonomy
  24. process:
  25. # Skip the row if the vocabulary already exists.
  26. not_exists:
  27. -
  28. plugin: entity_exists
  29. source: vid
  30. entity_type: taxonomy_vocabulary
  31. -
  32. plugin: callback
  33. callable: is_bool
  34. -
  35. plugin: skip_on_empty
  36. method: row
  37. vid: vid
  38. name: name
  39. description: description
  40. weight: weight
  41. destination:
  42. plugin: entity:taxonomy_vocabulary