woo3_taxonomy_vocabulary.yml in Commerce Migrate 3.0.x
Same filename and directory in other branches
  modules/woocommerce/migrations/woo3_taxonomy_vocabulary.yml
File
modules/woocommerce/migrations/woo3_taxonomy_vocabulary.ymlView source
- # Creates 'Categories' and 'Tags' vocabularies, if they do not exist. This
- # migration can be removed if the necessary vocabularies exist on the
- # destination site. Other vocabularies can be created by adding extra rows
- # to the source field 'data_rows'.
- id: woo3_taxonomy_vocabulary
- label: Create default vocabularies for WooCommerce 3.
- migration_group: commerce_migrate_woo3
- migration_tags:
-   - WooCommerce 3
-   - Configuration
- source:
-   plugin: embedded_data
-   # Add or remove rows from the data_rows as needed.
-   data_rows:
-     -
-       vid: categories
-       name: Categories
-       description: Product categories
-       hierarchy: 0
-       weight: 0
-     -
-       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
