Security update for Core, with self-updated composer
[yaffs-website] / web / core / modules / taxonomy / migration_templates / d6_vocabulary_field_instance.yml
1 id: d6_vocabulary_field_instance
2 label: Vocabulary field instance configuration
3 migration_tags:
4   - Drupal 6
5 source:
6   plugin: d6_taxonomy_vocabulary_per_type
7   constants:
8     entity_type: node
9     auto_create: true
10     selection_handler: 'default:taxonomy_term'
11     field_prefix: field_
12 process:
13   entity_type: 'constants/entity_type'
14   bundle:
15     -
16       plugin: migration_lookup
17       migration: d6_node_type
18       source: type
19     -
20       plugin: skip_on_empty
21       method: row
22   # This value is only used in the 'field_name' process pipeline below.
23   raw_field_name:
24     -
25       plugin: migration_lookup
26       migration: d6_taxonomy_vocabulary
27       source: vid
28     -
29       plugin: skip_on_empty
30       method: row
31   field_name:
32     # Prepend field_ to avoid conflicts with base fields, and make sure the
33     # result is no longer than 32 characters.
34     -
35       plugin: concat
36       source:
37         - constants/field_prefix
38         - '@raw_field_name'
39     -
40       plugin: substr
41       length: 32
42     -
43       # This plugin checks if the vocabulary being migrated is the one used by
44       # Forum. If so, we use the machine name that Forum expects. Otherwise, we
45       # leave it unchanged.
46       plugin: forum_vocabulary
47       machine_name: taxonomy_forums
48   label: name
49   'settings/handler': 'constants/selection_handler'
50   'settings/handler_settings/target_bundles/0': '@field_name'
51   'settings/handler_settings/auto_create': 'constants/auto_create'
52   required: required
53 destination:
54   plugin: entity:field_config
55 migration_dependencies:
56   required:
57     - d6_node_type
58     - d6_vocabulary_field