search.routing.yml

Same filename in other branches
  1. 9 core/modules/search/search.routing.yml
  2. 10 core/modules/search/search.routing.yml
  3. 11.x core/modules/search/search.routing.yml
core/modules/search/search.routing.yml
5 string references to YAML keys in search.routing.yml
ReindexConfirm::getCancelUrl in core/modules/search/src/Form/ReindexConfirm.php
Returns the route to go to if the user cancels the action.
SearchController::setAsDefault in core/modules/search/src/Controller/SearchController.php
Sets the search page as the default.
SearchPageListBuilder::getDefaultOperations in core/modules/search/src/SearchPageListBuilder.php
Gets this list's default operations.
SearchPageListBuilder::searchAdminReindexSubmit in core/modules/search/src/SearchPageListBuilder.php
Form submission handler for the reindex button on the search admin settings form.
SearchPageListBuilder::submitAddSearchPage in core/modules/search/src/SearchPageListBuilder.php
Form submission handler for adding a new search page.

File

core/modules/search/search.routing.yml

View source
  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'

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