search_api.routing.yml 7.4 KB

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