8a68f3195a306abf8df2b3a1285e59129a371fbe
[yaffs-website] / web / core / modules / comment / migration_templates / 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 source:
6   plugin: d6_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: d6_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     - d6_comment_type