search.routing.yml in Drupal 9
Same filename and directory in other branches
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.ymlView source
- entity.search_page.collection:
- path: '/admin/config/search/pages'
- defaults:
- _entity_list: 'search_page'
- _title: 'Search pages'
- requirements:
- _permission: 'administer search'
-
- search.reindex_confirm:
- path: '/admin/config/search/pages/reindex'
- defaults:
- _form: '\Drupal\search\Form\ReindexConfirm'
- _title: 'Clear index'
- requirements:
- _permission: 'administer search'
-
- search.add_type:
- path: '/admin/config/search/pages/add/{search_plugin_id}'
- defaults:
- _entity_form: 'search_page.add'
- _title: 'Add new search page'
- requirements:
- _entity_create_access: 'search_page'
-
- entity.search_page.edit_form:
- path: '/admin/config/search/pages/manage/{search_page}'
- defaults:
- _entity_form: 'search_page.edit'
- _title_callback: '\Drupal\search\Controller\SearchController::editTitle'
- requirements:
- _entity_access: 'search_page.update'
-
- entity.search_page.enable:
- path: '/admin/config/search/pages/manage/{search_page}/enable'
- defaults:
- _controller: '\Drupal\search\Controller\SearchController::performOperation'
- op: 'enable'
- requirements:
- _entity_access: 'search_page.update'
- _csrf_token: 'TRUE'
-
- entity.search_page.disable:
- path: '/admin/config/search/pages/manage/{search_page}/disable'
- defaults:
- _controller: '\Drupal\search\Controller\SearchController::performOperation'
- op: 'disable'
- requirements:
- _entity_access: 'search_page.disable'
- _csrf_token: 'TRUE'
-
- entity.search_page.set_default:
- path: '/admin/config/search/pages/manage/{search_page}/set-default'
- defaults:
- _controller: '\Drupal\search\Controller\SearchController::setAsDefault'
- requirements:
- _entity_access: 'search_page.update'
- _csrf_token: 'TRUE'
-
- entity.search_page.delete_form:
- path: '/admin/config/search/pages/manage/{search_page}/delete'
- defaults:
- _entity_form: 'search_page.delete'
- _title: 'Delete'
- requirements:
- _entity_access: 'search_page.delete'
-
- route_callbacks:
- - '\Drupal\search\Routing\SearchPageRoutes::routes'