b6acaedb394c6116244a9e7a60a86c02bfa75eb9
[yaffs-website] / web / core / modules / comment / migrations / d6_comment_entity_form_display_subject.yml
1 id: d6_comment_entity_form_display_subject
2 label: Comment subject form display configuration
3 migration_tags:
4   - Drupal 6
5   - Configuration
6 source:
7   plugin: d6_node_type
8   constants:
9     entity_type: comment
10     field_name: subject
11     form_mode: default
12     options:
13       type: string_textfield
14       weight: 10
15 process:
16   entity_type: 'constants/entity_type'
17   field_name: 'constants/field_name'
18   form_mode: 'constants/form_mode'
19   options: 'constants/options'
20   bundle:
21     -
22       plugin: migration_lookup
23       source: type
24       migration: d6_comment_type
25     -
26       plugin: skip_on_empty
27       method: row
28   hidden:
29     plugin: static_map
30     source: comment_subject_field
31     map:
32       # If comment_subject_field = FALSE, then hidden = TRUE.
33       0: true
34       # If comment_subject_field = TRUE, then hidden = FALSE.
35       1: false
36     default_value: false
37 destination:
38   plugin: component_entity_form_display
39 migration_dependencies:
40   required:
41     - d6_comment_type