You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

47 lines
942 B

4 years ago
  1. uuid: f3d81028-4d35-43fb-9d60-7fba1a232188
  2. langcode: en
  3. status: true
  4. dependencies: { }
  5. id: upgrade_d7_comment_type
  6. class: Drupal\migrate\Plugin\Migration
  7. field_plugin_method: null
  8. cck_plugin_method: null
  9. migration_tags:
  10. - 'Drupal 7'
  11. - Configuration
  12. migration_group: migrate_drupal_7
  13. label: 'Comment type'
  14. source:
  15. plugin: d7_node_type
  16. constants:
  17. entity_type: node
  18. id_prefix: comment_node_
  19. label_suffix: comment
  20. process:
  21. target_entity_type_id:
  22. -
  23. plugin: get
  24. source: constants/entity_type
  25. id:
  26. -
  27. plugin: concat
  28. source:
  29. - constants/id_prefix
  30. - type
  31. -
  32. plugin: static_map
  33. bypass: true
  34. map:
  35. comment_node_forum: comment_forum
  36. label:
  37. -
  38. plugin: concat
  39. source:
  40. - name
  41. - constants/label_suffix
  42. delimiter: ' '
  43. destination:
  44. plugin: 'entity:comment_type'
  45. migration_dependencies:
  46. required: { }
  47. optional: { }