d6_view_modes.yml

Same filename in other branches
  1. 9 core/modules/node/migrations/d6_view_modes.yml
  2. 10 core/modules/node/migrations/d6_view_modes.yml
  3. 11.x core/modules/node/migrations/d6_view_modes.yml
core/modules/node/migrations/d6_view_modes.yml

File

core/modules/node/migrations/d6_view_modes.yml

View source
  1. id: d6_view_modes
  2. label: View modes
  3. migration_tags:
  4. - Drupal 6
  5. - Configuration
  6. source:
  7. plugin: d6_view_mode
  8. constants:
  9. targetEntityType: node
  10. status: true
  11. process:
  12. mode:
  13. plugin: static_map
  14. source: view_mode
  15. map:
  16. 0: normal
  17. 1: preview
  18. 2: search_index
  19. 3: search_result
  20. 4: rss
  21. 5: print
  22. teaser: teaser
  23. full: full
  24. label:
  25. plugin: static_map
  26. source: view_mode
  27. map:
  28. 0: "Normal"
  29. 1: "Preview"
  30. 2: "Search index"
  31. 3: "Search result"
  32. 4: "RSS"
  33. 5: "Print"
  34. teaser: "Teaser"
  35. full: "Full"
  36. targetEntityType: 'constants/targetEntityType'
  37. status: 'constants/status'
  38. destination:
  39. plugin: entity:entity_view_mode

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.