search.routing.yml 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. entity.search_page.collection:
  2. path: '/admin/config/search/pages'
  3. defaults:
  4. _entity_list: 'search_page'
  5. _title: 'Search pages'
  6. requirements:
  7. _permission: 'administer search'
  8. search.reindex_confirm:
  9. path: '/admin/config/search/pages/reindex'
  10. defaults:
  11. _form: '\Drupal\search\Form\ReindexConfirm'
  12. _title: 'Clear index'
  13. requirements:
  14. _permission: 'administer search'
  15. search.add_type:
  16. path: '/admin/config/search/pages/add/{search_plugin_id}'
  17. defaults:
  18. _entity_form: 'search_page.add'
  19. _title: 'Add new search page'
  20. requirements:
  21. _entity_create_access: 'search_page'
  22. entity.search_page.edit_form:
  23. path: '/admin/config/search/pages/manage/{search_page}'
  24. defaults:
  25. _entity_form: 'search_page.edit'
  26. _title_callback: '\Drupal\search\Controller\SearchController::editTitle'
  27. requirements:
  28. _entity_access: 'search_page.update'
  29. entity.search_page.enable:
  30. path: '/admin/config/search/pages/manage/{search_page}/enable'
  31. defaults:
  32. _controller: '\Drupal\search\Controller\SearchController::performOperation'
  33. op: 'enable'
  34. requirements:
  35. _entity_access: 'search_page.update'
  36. _csrf_token: 'TRUE'
  37. entity.search_page.disable:
  38. path: '/admin/config/search/pages/manage/{search_page}/disable'
  39. defaults:
  40. _controller: '\Drupal\search\Controller\SearchController::performOperation'
  41. op: 'disable'
  42. requirements:
  43. _entity_access: 'search_page.disable'
  44. _csrf_token: 'TRUE'
  45. entity.search_page.set_default:
  46. path: '/admin/config/search/pages/manage/{search_page}/set-default'
  47. defaults:
  48. _controller: '\Drupal\search\Controller\SearchController::setAsDefault'
  49. requirements:
  50. _entity_access: 'search_page.update'
  51. _csrf_token: 'TRUE'
  52. entity.search_page.delete_form:
  53. path: '/admin/config/search/pages/manage/{search_page}/delete'
  54. defaults:
  55. _entity_form: 'search_page.delete'
  56. _title: 'Delete'
  57. requirements:
  58. _entity_access: 'search_page.delete'
  59. route_callbacks:
  60. - '\Drupal\search\Routing\SearchPageRoutes::routes'