You are here

view_modes_display.routing.yml in View Modes Display 8

File

view_modes_display.routing.yml
View source
  1. view_modes_display.node:
  2. path: '/node/{node}/preview'
  3. defaults:
  4. _controller: '\Drupal\view_modes_display\Controller\DefaultController::previewNode'
  5. requirements:
  6. _permission: 'preview view modes'
  7. node: \d+
  8. view_modes_display.block_content:
  9. path: '/block/{block_content}/preview'
  10. defaults:
  11. _controller: '\Drupal\view_modes_display\Controller\DefaultController::previewBlockContent'
  12. requirements:
  13. _permission: 'preview view modes'
  14. block_content: \d+
  15. view_modes_display.user:
  16. path: '/user/{user}/preview'
  17. defaults:
  18. _controller: '\Drupal\view_modes_display\Controller\DefaultController::previewUser'
  19. requirements:
  20. _permission: 'preview view modes'
  21. user: \d+