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