You are here

d6_comment_field_instance.yml in Zircon Profile 8.0

core/modules/comment/migration_templates/d6_comment_field_instance.yml

File

core/modules/comment/migration_templates/d6_comment_field_instance.yml
View source
  1. id: d6_comment_field_instance
  2. label: Comment field instance configuration
  3. migration_tags:
  4. - Drupal 6
  5. source:
  6. plugin: d6_comment_variable
  7. constants:
  8. entity_type: node
  9. label: Comments
  10. required: true
  11. process:
  12. entity_type: 'constants/entity_type'
  13. label: 'constants/label'
  14. required: 'constants/required'
  15. field_name:
  16. plugin: static_map
  17. source: comment_subject_field
  18. default_value: comment
  19. map:
  20. 0: comment_no_subject
  21. bundle: node_type
  22. 'default_value/0/status': comment
  23. 'settings/default_mode':
  24. plugin: static_map
  25. source: comment_default_mode
  26. map:
  27. # COMMENT_MODE_FLAT_COLLAPSED --> COMMENT_MODE_FLAT
  28. 1: 0
  29. # COMMENT_MODE_FLAT_EXPANDED --> COMMENT_MODE_FLAT
  30. 2: 0
  31. # COMMENT_MODE_THREADED_COLLAPSED --> COMMENT_MODE_THREADED
  32. 3: 1
  33. # COMMENT_MODE_THREADED_EXPANDED --> COMMENT_MODE_THREADED
  34. 4: 1
  35. 'settings/per_page': comment_default_per_page
  36. 'settings/anonymous': comment_anonymous
  37. 'settings/form_location': comment_form_location
  38. 'settings/preview': comment_preview
  39. destination:
  40. plugin: entity:field_config
  41. migration_dependencies:
  42. required:
  43. - d6_comment_field
  44. - d6_node_type