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