You are here

uc7_comment_entity_form_display_subject.yml in Commerce Migrate 8.2

modules/ubercart/migrations/uc7_comment_entity_form_display_subject.yml

File

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