Security update for Core, with self-updated composer
[yaffs-website] / web / core / modules / comment / migration_templates / d7_comment_field_instance.yml
1 id: d7_comment_field_instance
2 label: Comment field instance configuration
3 migration_tags:
4   - Drupal 7
5 source:
6   plugin: d7_node_type
7   constants:
8     entity_type: node
9     label: Comments
10     required: true
11 process:
12   entity_type: 'constants/entity_type'
13   label: 'constants/label'
14   required: 'constants/required'
15   field_name:
16     -
17       plugin: migration_lookup
18       source: type
19       migration: d7_comment_type
20     -
21       plugin: skip_on_empty
22       method: row
23   bundle: type
24   'default_value/0/status':
25     # We're using static_map instead of default_value otherwise if the source
26     # is 0, the default value of 1 would be used.
27     plugin: static_map
28     source: comment
29     map:
30       0: 0
31       1: 1
32       2: 2
33     default_value: 2
34   'settings/default_mode':
35     # We're using static_map instead of default_value otherwise if the source
36     # is 0, the default value of 1 would be used.
37     plugin: static_map
38     source: comment_default_mode
39     map:
40       0: 0
41       1: 1
42     default_value: 1
43   'settings/per_page':
44     plugin: default_value
45     source: comment_default_per_page
46     default_value: 50
47   'settings/anonymous':
48     plugin: default_value
49     source: comment_anonymous
50     default_value: 0
51   'settings/form_location':
52     plugin: default_value
53     source: comment_form_location
54     default_value: 0
55   'settings/preview':
56     # We're using static_map instead of default_value otherwise if the source
57     # is 0, the default value of 1 would be used.
58     plugin: static_map
59     source: comment_preview
60     map:
61       0: 0
62       1: 1
63       2: 2
64     default_value: 1
65 destination:
66   plugin: entity:field_config
67 migration_dependencies:
68   required:
69     - d7_node_type
70     - d7_comment_field