You are here

search_api_saved_searches.routing.yml in Search API Saved Searches 8

File

search_api_saved_searches.routing.yml
View source
  1. entity.search_api_saved_search.canonical:
  2. path: '/saved-search/{search_api_saved_search}'
  3. defaults:
  4. _controller: '\Drupal\search_api_saved_searches\Controller\SavedSearchController::viewSearch'
  5. requirements:
  6. _entity_access: 'search_api_saved_search.view'
  7. entity.search_api_saved_search.activate:
  8. path: '/saved-search/{search_api_saved_search}/activate'
  9. defaults:
  10. _controller: '\Drupal\search_api_saved_searches\Controller\SavedSearchController::activateSearch'
  11. requirements:
  12. _entity_access: 'search_api_saved_search.activate'
  13. entity.search_api_saved_search.edit_form:
  14. path: '/saved-search/{search_api_saved_search}/edit'
  15. defaults:
  16. _entity_form: 'search_api_saved_search.edit'
  17. requirements:
  18. _entity_access: 'search_api_saved_search.edit'
  19. entity.search_api_saved_search.delete_form:
  20. path: '/saved-search/{search_api_saved_search}/delete'
  21. defaults:
  22. _entity_form: 'search_api_saved_search.delete'
  23. requirements:
  24. _entity_access: 'search_api_saved_search.delete'
  25. entity.search_api_saved_search_type.collection:
  26. path: '/admin/config/search/search-api-saved-searches'
  27. defaults:
  28. _title: 'Saved searches'
  29. _entity_list: 'search_api_saved_search_type'
  30. requirements:
  31. _permission: 'administer search_api_saved_searches'
  32. entity.search_api_saved_search_type.add_form:
  33. path: '/admin/config/search/search-api-saved-searches/add-type'
  34. defaults:
  35. _entity_form: 'search_api_saved_search_type.default'
  36. requirements:
  37. _entity_create_access: 'search_api_saved_search_type'
  38. entity.search_api_saved_search_type.edit_form:
  39. path: '/admin/config/search/search-api-saved-searches/type/{search_api_saved_search_type}/edit'
  40. defaults:
  41. _entity_form: 'search_api_saved_search_type.edit'
  42. requirements:
  43. _entity_access: 'search_api_saved_search_type.edit'
  44. entity.search_api_saved_search_type.delete_form:
  45. path: '/admin/config/search/search-api-saved-searches/type/{search_api_saved_search_type}/delete'
  46. defaults:
  47. _entity_form: 'search_api_saved_search_type.delete'
  48. requirements:
  49. _entity_access: 'search_api_saved_search_type.delete'