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