You are here

search_api.routing.yml in Search API 8

File

search_api.routing.yml
View source
  1. search_api.overview:
  2. path: '/admin/config/search/search-api'
  3. defaults:
  4. _title: 'Search API'
  5. _entity_list: 'search_api_index'
  6. requirements:
  7. _permission: 'administer search_api'
  8. search_api.execute_tasks:
  9. path: '/admin/config/search/search-api/execute-tasks'
  10. defaults:
  11. _controller: '\Drupal\search_api\Controller\TaskController::executeTasks'
  12. _title: 'Execute pending tasks'
  13. requirements:
  14. _custom_access: '\Drupal\search_api\Controller\TaskController::executeTasksAccess'
  15. entity.search_api_server.add_form:
  16. path: '/admin/config/search/search-api/add-server'
  17. defaults:
  18. _entity_form: 'search_api_server.default'
  19. requirements:
  20. _entity_create_access: 'search_api_server'
  21. entity.search_api_server.canonical:
  22. path: '/admin/config/search/search-api/server/{search_api_server}'
  23. defaults:
  24. _controller: '\Drupal\search_api\Controller\ServerController::page'
  25. _title_callback: '\Drupal\search_api\Controller\ServerController::pageTitle'
  26. _title: "View"
  27. requirements:
  28. _entity_access: 'search_api_server.view'
  29. options:
  30. parameters:
  31. search_api_server:
  32. with_config_overrides: TRUE
  33. entity.search_api_server.edit_form:
  34. path: '/admin/config/search/search-api/server/{search_api_server}/edit'
  35. defaults:
  36. _entity_form: 'search_api_server.edit'
  37. requirements:
  38. _entity_access: 'search_api_server.edit'
  39. entity.search_api_server.delete_form:
  40. path: '/admin/config/search/search-api/server/{search_api_server}/delete'
  41. defaults:
  42. _entity_form: 'search_api_server.delete'
  43. requirements:
  44. _entity_access: 'search_api_server.delete'
  45. options:
  46. parameters:
  47. search_api_server:
  48. with_config_overrides: TRUE
  49. entity.search_api_server.enable:
  50. path: '/admin/config/search/search-api/server/{search_api_server}/enable'
  51. defaults:
  52. _controller: 'Drupal\search_api\Controller\ServerController::serverBypassEnable'
  53. requirements:
  54. _entity_access: 'search_api_server.enable'
  55. _csrf_token: 'TRUE'
  56. entity.search_api_server.disable:
  57. path: '/admin/config/search/search-api/server/{search_api_server}/disable'
  58. defaults:
  59. _entity_form: 'search_api_server.disable'
  60. requirements:
  61. _entity_access: 'search_api_server.disable'
  62. entity.search_api_server.clear:
  63. path: '/admin/config/search/search-api/server/{search_api_server}/clear'
  64. defaults:
  65. _entity_form: 'search_api_server.clear'
  66. requirements:
  67. _entity_access: 'search_api_server.clear'
  68. options:
  69. parameters:
  70. search_api_server:
  71. with_config_overrides: TRUE
  72. entity.search_api_index.add_form:
  73. path: '/admin/config/search/search-api/add-index'
  74. defaults:
  75. _entity_form: 'search_api_index.default'
  76. requirements:
  77. _entity_create_access: 'search_api_index'
  78. entity.search_api_index.canonical:
  79. path: '/admin/config/search/search-api/index/{search_api_index}'
  80. defaults:
  81. _controller: '\Drupal\search_api\Controller\IndexController::page'
  82. _title_callback: '\Drupal\search_api\Controller\IndexController::pageTitle'
  83. requirements:
  84. _entity_access: 'search_api_index.view'
  85. options:
  86. parameters:
  87. search_api_index:
  88. with_config_overrides: TRUE
  89. entity.search_api_index.edit_form:
  90. path: '/admin/config/search/search-api/index/{search_api_index}/edit'
  91. defaults:
  92. _entity_form: 'search_api_index.edit'
  93. requirements:
  94. _entity_access: 'search_api_index.edit'
  95. entity.search_api_index.delete_form:
  96. path: '/admin/config/search/search-api/index/{search_api_index}/delete'
  97. defaults:
  98. _entity_form: 'search_api_index.delete'
  99. requirements:
  100. _entity_access: 'search_api_index.delete'
  101. options:
  102. parameters:
  103. search_api_index:
  104. with_config_overrides: TRUE
  105. entity.search_api_index.enable:
  106. path: '/admin/config/search/search-api/index/{search_api_index}/enable'
  107. defaults:
  108. _controller: 'Drupal\search_api\Controller\IndexController::indexBypassEnable'
  109. requirements:
  110. _entity_access: 'search_api_index.enable'
  111. _csrf_token: 'TRUE'
  112. entity.search_api_index.disable:
  113. path: '/admin/config/search/search-api/index/{search_api_index}/disable'
  114. defaults:
  115. _entity_form: 'search_api_index.disable'
  116. requirements:
  117. _entity_access: 'search_api_index.disable'
  118. entity.search_api_index.fields:
  119. path: '/admin/config/search/search-api/index/{search_api_index}/fields'
  120. options:
  121. parameters:
  122. search_api_index:
  123. tempstore: TRUE
  124. type: 'entity:search_api_index'
  125. defaults:
  126. _entity_form: 'search_api_index.fields'
  127. requirements:
  128. _entity_access: 'search_api_index.fields'
  129. entity.search_api_index.add_fields:
  130. path: '/admin/config/search/search-api/index/{search_api_index}/fields/add/nojs'
  131. options:
  132. parameters:
  133. search_api_index:
  134. tempstore: TRUE
  135. type: 'entity:search_api_index'
  136. defaults:
  137. _entity_form: 'search_api_index.add_fields'
  138. requirements:
  139. _entity_access: 'search_api_index.fields'
  140. entity.search_api_index.add_fields_ajax:
  141. path: '/admin/config/search/search-api/index/{search_api_index}/fields/add/ajax'
  142. options:
  143. parameters:
  144. search_api_index:
  145. tempstore: TRUE
  146. type: 'entity:search_api_index'
  147. defaults:
  148. _entity_form: 'search_api_index.add_fields'
  149. requirements:
  150. _entity_access: 'search_api_index.fields'
  151. entity.search_api_index.field_config:
  152. path: '/admin/config/search/search-api/index/{search_api_index}/fields/edit/{field_id}'
  153. options:
  154. parameters:
  155. search_api_index:
  156. tempstore: TRUE
  157. type: 'entity:search_api_index'
  158. defaults:
  159. _title: 'Edit field'
  160. _entity_form: 'search_api_index.field_config'
  161. requirements:
  162. _entity_access: 'search_api_index.fields'
  163. entity.search_api_index.remove_field:
  164. path: '/admin/config/search/search-api/index/{search_api_index}/fields/remove/{field_id}'
  165. options:
  166. parameters:
  167. search_api_index:
  168. tempstore: TRUE
  169. type: 'entity:search_api_index'
  170. defaults:
  171. _controller: 'Drupal\search_api\Controller\IndexController::removeField'
  172. requirements:
  173. _entity_access: 'search_api_index.fields'
  174. _csrf_token: 'TRUE'
  175. entity.search_api_index.break_lock_form:
  176. path: '/admin/config/search/search-api/index/{search_api_index}/fields/break-lock'
  177. defaults:
  178. _entity_form: 'search_api_index.break_lock'
  179. _title: 'Break lock'
  180. requirements:
  181. _entity_access: 'search_api_index.break-lock'
  182. entity.search_api_index.processors:
  183. path: '/admin/config/search/search-api/index/{search_api_index}/processors'
  184. defaults:
  185. _entity_form: 'search_api_index.processors'
  186. requirements:
  187. _entity_access: 'search_api_index.processors'
  188. entity.search_api_index.reindex:
  189. path: '/admin/config/search/search-api/index/{search_api_index}/reindex'
  190. defaults:
  191. _entity_form: 'search_api_index.reindex'
  192. requirements:
  193. _entity_access: 'search_api_index.reindex'
  194. options:
  195. parameters:
  196. search_api_index:
  197. with_config_overrides: TRUE
  198. entity.search_api_index.clear:
  199. path: '/admin/config/search/search-api/index/{search_api_index}/clear'
  200. defaults:
  201. _entity_form: 'search_api_index.clear'
  202. requirements:
  203. _entity_access: 'search_api_index.clear'
  204. options:
  205. parameters:
  206. search_api_index:
  207. with_config_overrides: TRUE
  208. entity.search_api_index.rebuild_tracker:
  209. path: '/admin/config/search/search-api/index/{search_api_index}/rebuild-tracker'
  210. defaults:
  211. _entity_form: 'search_api_index.rebuild_tracker'
  212. requirements:
  213. _entity_access: 'search_api_index.rebuild_tracker'
  214. options:
  215. parameters:
  216. search_api_index:
  217. with_config_overrides: TRUE