Updated all the contrib modules to their latest versions.
[yaffs-website] / web / modules / contrib / migrate_plus / migrate_example / config / install / migrate_plus.migration.beer_node.yml
1 # Migration configuration for beer content.
2 id: beer_node
3 label: Beers of the world
4 migration_group: beer
5 migration_tags:
6   - example
7 source:
8   plugin: beer_node
9 destination:
10   plugin: entity:node
11 process:
12   # Hardcode the destination node type (bundle) as 'migrate_example_beer'.
13   type:
14     plugin: default_value
15     default_value: migrate_example_beer
16   title: name
17   nid: bid
18   uid:
19     plugin: migration_lookup
20     migration: beer_user
21     source: aid
22   sticky:
23     plugin: default_value
24     default_value: 0
25   field_migrate_example_country: countries
26   field_migrate_example_beer_style:
27     plugin: migration_lookup
28     migration: beer_term
29     source: terms
30   # Some Drupal fields may have multiple components we may want to set
31   # separately. For example, text fields may have summaries (teasers) in
32   # addition to the full text value. We use / to separate the field name from
33   # the internal field value being set, and put it in quotes because / is a
34   # YAML special character.
35   'body/value': body
36   'body/summary': excerpt
37 # Our beer nodes have references to terms and users, so we want those to be
38 # imported first. We make that dependency explicit here - by putting those
39 # migrations under the 'required' key, we ensure that the tools will prevent
40 # us from running the beer_node migration unless the beer_term and beer_user
41 # migrations are complete (although we can override the dependency check by
42 # passing --force to the drush migrate-import command). We can also add
43 # 'optional' dependencies - these affect the order in which migrations are
44 # displayed, and run by default, but does not force you run them in that
45 # order.
46 # The general rule of thumb is that any migrations referenced by migration
47 # process plugins should be required here.
48 migration_dependencies:
49   required:
50     - beer_term
51     - beer_user
52 dependencies:
53   enforced:
54     module:
55       - migrate_example