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