You are here

d6_comment_entity_form_display_subject.yml in Zircon Profile 8

core/modules/comment/migration_templates/d6_comment_entity_form_display_subject.yml

File

core/modules/comment/migration_templates/d6_comment_entity_form_display_subject.yml
View source
  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_comment_variable_per_comment_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. hidden:
  20. plugin: static_map
  21. source: comment_type
  22. default_value: false
  23. map:
  24. comment_no_subject: true # Hide subject field
  25. comment: false
  26. bundle: comment_type
  27. destination:
  28. plugin: component_entity_form_display
  29. migration_dependencies:
  30. required:
  31. - d6_comment_type