Updated all the contrib modules to their latest versions.
[yaffs-website] / web / modules / contrib / migrate_plus / migrate_example_advanced / config / install / migrate_plus.migration.wine_terms.yml
1 id: wine_terms
2 label: Migrate all categories into Drupal taxonomy terms
3 migration_group: wine
4 migration_tags:
5   - advanced example
6 source:
7   plugin: wine_term
8 destination:
9   plugin: entity:taxonomy_term
10 process:
11   name: name
12   description: details
13   # Usually, one wants to have a separate migration for each entity_type/bundle
14   # combination - e.g., separate migrations for articles and blog posts, as
15   # opposed to a single monolithic node migration. This affords maximum
16   # control - the ability to import just one bundle at a time, and most
17   # importantly to have distinct field mappings (because different node types
18   # usually have different fields). In this case, though, because all of the
19   # vocabularies we're importing come from a common table, and on the Drupal
20   # side there are no distinct custom fields, we are able to import them all in
21   # one migration. The static_map tells the migration in which vocabulary to
22   # place each term, based on the incoming 'type' column.
23   vid:
24     plugin: static_map
25     source: type
26     map:
27       best_with: migrate_example_wine_best_with
28       region: migrate_example_wine_regions
29       variety: migrate_example_wine_varieties
30   parent:
31     plugin: migration_lookup
32     migration: wine_terms
33     source: category_parent
34   weight: ordering
35 migration_dependencies: {}
36 dependencies:
37   enforced:
38     module:
39       - migrate_example_advanced