X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=web%2Fcore%2Fmodules%2Fcomment%2Fmigration_templates%2Fd7_comment_entity_form_display_subject.yml;fp=web%2Fcore%2Fmodules%2Fcomment%2Fmigration_templates%2Fd7_comment_entity_form_display_subject.yml;h=b131c0ab6271b973214b664c732ff922df35b53f;hp=c27303e8760ce201b4baeb29e82fcbc291bf08b9;hb=9917807b03b64faf00f6a1f29dcb6eafc454efa5;hpb=aea91e65e895364e460983b890e295aa5d5540a5 diff --git a/web/core/modules/comment/migration_templates/d7_comment_entity_form_display_subject.yml b/web/core/modules/comment/migration_templates/d7_comment_entity_form_display_subject.yml index c27303e87..b131c0ab6 100644 --- a/web/core/modules/comment/migration_templates/d7_comment_entity_form_display_subject.yml +++ b/web/core/modules/comment/migration_templates/d7_comment_entity_form_display_subject.yml @@ -3,7 +3,7 @@ label: Comment subject form display configuration migration_tags: - Drupal 7 source: - plugin: d7_comment_type + plugin: d7_node_type constants: entity_type: comment field_name: subject @@ -16,13 +16,23 @@ process: field_name: 'constants/field_name' form_mode: 'constants/form_mode' options: 'constants/options' + bundle: + - + plugin: migration_lookup + source: type + migration: d7_comment_type + - + plugin: skip_on_empty + method: row hidden: plugin: static_map - source: subject + source: comment_subject_field map: + # If comment_subject_field = FALSE, then hidden = TRUE. 0: true + # If comment_subject_field = TRUE, then hidden = FALSE. 1: false - bundle: bundle + default_value: false destination: plugin: component_entity_form_display migration_dependencies: