You are here

d6_comment_type.yml in Drupal 8

Same filename and directory in other branches
  1. 9 core/modules/comment/migrations/d6_comment_type.yml
core/modules/comment/migrations/d6_comment_type.yml

File

core/modules/comment/migrations/d6_comment_type.yml
View source
  1. id: d6_comment_type
  2. label: Comment type
  3. migration_tags:
  4. - Drupal 6
  5. - Configuration
  6. source:
  7. plugin: d6_node_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. label:
  28. plugin: concat
  29. source:
  30. - name
  31. - 'constants/label_suffix'
  32. delimiter: ' '
  33. destination:
  34. plugin: entity:comment_type