You are here

uc7_comment_type.yml in Commerce Migrate 3.0.x

modules/ubercart/migrations/uc7_comment_type.yml

File

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