You are here

d7_comment_field.yml in Drupal 8

core/modules/comment/migrations/d7_comment_field.yml

File

core/modules/comment/migrations/d7_comment_field.yml
View source
  1. id: d7_comment_field
  2. label: Comment field configuration
  3. migration_tags:
  4. - Drupal 7
  5. - Configuration
  6. source:
  7. plugin: d7_node_type
  8. constants:
  9. entity_type: node
  10. type: comment
  11. process:
  12. entity_type: 'constants/entity_type'
  13. field_name:
  14. -
  15. plugin: migration_lookup
  16. source: type
  17. migration: d7_comment_type
  18. -
  19. plugin: skip_on_empty
  20. method: row
  21. type: 'constants/type'
  22. 'settings/comment_type': '@field_name'
  23. destination:
  24. plugin: entity:field_storage_config
  25. migration_dependencies:
  26. required:
  27. - d7_comment_type