You are here

view_mode_page.routing.yml in View Mode Page 4.0.x

Same filename and directory in other branches
  1. 8.3 view_mode_page.routing.yml
  2. 3.2.x view_mode_page.routing.yml

File

view_mode_page.routing.yml
View source
  1. view_mode_page.display_entity:
  2. path: '/view_mode_page/{view_mode}/{entity_type}/{entity_id}'
  3. defaults:
  4. _controller: '\Drupal\view_mode_page\Controller\MainController::displayEntity'
  5. requirements:
  6. _permission: 'access content'
  7. entity.view_mode_page_pattern.collection:
  8. path: '/admin/config/search/view-mode-page'
  9. defaults:
  10. _entity_list: 'view_mode_page_pattern'
  11. _title: 'View mode page'
  12. requirements:
  13. _permission: 'administer view_mode_page'
  14. entity.view_mode_page_pattern.add_form:
  15. path: '/admin/config/search/view-mode-page/add'
  16. defaults:
  17. _entity_form: 'view_mode_page_pattern.default'
  18. _title: 'Add pattern'
  19. tempstore_id: 'view_mode_page.pattern'
  20. requirements:
  21. _permission: 'administer view_mode_page'