You are here

d7_comment_type.yml in Drupal 10

core/modules/comment/migrations/d7_comment_type.yml

File

core/modules/comment/migrations/d7_comment_type.yml
View source
  1. id: d7_comment_type
  2. label: Comment type
  3. migration_tags:
  4. - Drupal 7
  5. - Configuration
  6. source:
  7. plugin: comment_type
  8. constants:
  9. entity_type: node
  10. id_prefix: 'comment_node_'
  11. label_suffix: 'comment'
  12. process:
  13. target_entity_type_id: 'constants/entity_type'
  14. id:
  15. -
  16. plugin: concat
  17. source:
  18. - 'constants/id_prefix'
  19. - type
  20. -
  21. plugin: static_map
  22. bypass: true
  23. # The Forum module provides its own comment type (comment_forum), which we
  24. # want to reuse if it exists.
  25. map:
  26. comment_node_forum: comment_forum
  27. -
  28. plugin: make_unique_entity_field
  29. entity_type: comment_type
  30. field: id
  31. length: 30
  32. migrated: true
  33. label:
  34. plugin: concat
  35. source:
  36. - name
  37. - 'constants/label_suffix'
  38. delimiter: ' '
  39. destination:
  40. plugin: entity:comment_type