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