search.routing.yml 1.81 KB
Newer Older
1
search.settings:
2
  path: '/admin/config/search/pages'
3
  defaults:
4
    _entity_list: 'search_page'
5
    _title: 'Search pages'
6 7
  requirements:
    _permission: 'administer search'
8 9

search.reindex_confirm:
10
  path: '/admin/config/search/pages/reindex'
11
  defaults:
12
    _form: '\Drupal\search\Form\ReindexConfirm'
13
    _title: 'Clear index'
14 15
  requirements:
    _permission: 'administer search'
16

17
search.add_type:
18
  path: '/admin/config/search/pages/add/{search_plugin_id}'
19
  defaults:
20 21
    _entity_form: 'search_page.add'
    _title: 'Add new search page'
22
  requirements:
23 24 25
    _entity_create_access: 'search_page'

search.edit:
26
  path: '/admin/config/search/pages/manage/{search_page}'
27 28 29 30 31 32 33
  defaults:
    _entity_form: 'search_page.edit'
    _title_callback: '\Drupal\search\Controller\SearchController::editTitle'
  requirements:
    _entity_access: 'search_page.update'

search.enable:
34
  path: '/admin/config/search/pages/manage/{search_page}/enable'
35 36 37 38 39 40 41
  defaults:
    _controller: '\Drupal\search\Controller\SearchController::performOperation'
    op: 'enable'
  requirements:
    _entity_access: 'search_page.update'

search.disable:
42
  path: '/admin/config/search/pages/manage/{search_page}/disable'
43 44 45 46 47 48 49
  defaults:
    _controller: '\Drupal\search\Controller\SearchController::performOperation'
    op: 'disable'
  requirements:
    _entity_access: 'search_page.disable'

search.set_default:
50
  path: '/admin/config/search/pages/manage/{search_page}/set-default'
51 52 53 54 55 56
  defaults:
    _controller: '\Drupal\search\Controller\SearchController::setAsDefault'
  requirements:
    _entity_access: 'search_page.update'

search.delete:
57
  path: '/admin/config/search/pages/manage/{search_page}/delete'
58 59 60 61
  defaults:
    _entity_form: 'search_page.delete'
  requirements:
    _entity_access: 'search_page.delete'
62 63

route_callbacks:
64
  - '\Drupal\search\Routing\SearchPageRoutes::routes'