shopify_taxonomy_vocabulary.yml in Commerce Migrate 3.1.x
Same filename and directory in other branches
modules/shopify/migrations/shopify_taxonomy_vocabulary.yml
File
modules/shopify/migrations/shopify_taxonomy_vocabulary.ymlView source
- # Creates 'Tags' vocabularies, if it do not exist. This migration can be removed
- # if the necessary vocabulary exist on the destination site. Other vocabularies
- # can be created by adding extra rows to the source field 'data_rows'.
- id: shopify_taxonomy_vocabulary
- label: Create default vocabularies for Shopify.
- migration_group: commerce_migrate_shopify
- migration_tags:
- - Shopify
- - Configuration
- source:
- plugin: embedded_data
- # Add or remove rows from the data_rows as needed.
- data_rows:
- -
- vid: tags
- name: Tags
- description: Tags
- hierarchy: 0
- weight: 0
- ids:
- vid:
- type: string
- source_module: taxonomy
- process:
- # Skip the row if the vocabulary already exists.
- not_exists:
- -
- plugin: entity_exists
- source: vid
- entity_type: taxonomy_vocabulary
- -
- plugin: callback
- callable: is_bool
- -
- plugin: skip_on_empty
- method: row
- vid: vid
- name: name
- description: description
- weight: weight
- destination:
- plugin: entity:taxonomy_vocabulary