You are here

search_api_solr.routing.yml in Search API Solr 4.x

File

search_api_solr.routing.yml
View source
  1. search_api_solr.solr_config_files:
  2. path: '/admin/config/search/search-api/server/{search_api_server}/files'
  3. options:
  4. parameters:
  5. search_api_server:
  6. type: entity:search_api_server
  7. with_config_overrides: TRUE
  8. defaults:
  9. _form: '\Drupal\search_api_solr\Form\SolrConfigForm'
  10. requirements:
  11. _permission: 'administer search_api'
  12. _custom_access: '\Drupal\search_api_solr\Form\SolrConfigForm::access'
  13. # SolrFieldType routing definition
  14. entity.solr_field_type.collection:
  15. path: '/admin/config/search/search-api/server/{search_api_server}/solr_field_type'
  16. defaults:
  17. _title: 'SolrFieldType Configuration'
  18. _controller: '\Drupal\search_api_solr\Controller\SolrFieldTypeController::listing'
  19. options:
  20. parameters:
  21. search_api_server:
  22. type: entity:search_api_server
  23. with_config_overrides: TRUE
  24. requirements:
  25. _permission: 'administer search_api'
  26. _search_api_solr_local_action_access_check: 'TRUE'
  27. entity.solr_field_type.add_form:
  28. path: '/admin/config/search/search-api/solr_field_type/add'
  29. defaults:
  30. _entity_form: 'solr_field_type.add'
  31. _title: 'Add SolrFieldType'
  32. requirements:
  33. _permission: 'administer search_api'
  34. entity.solr_field_type.edit_form:
  35. path: '/admin/config/search/search-api/solr_field_type/{solr_field_type}'
  36. defaults:
  37. _entity_form: 'solr_field_type.edit'
  38. _title: 'Edit SolrFieldType'
  39. requirements:
  40. _permission: 'administer search_api'
  41. entity.solr_field_type.delete_form:
  42. path: '/admin/config/search/search-api/solr_field_type/{solr_field_type}/delete'
  43. defaults:
  44. _entity_form: 'solr_field_type.delete'
  45. _title: 'Delete SolrFieldType'
  46. requirements:
  47. _permission: 'administer search_api'
  48. entity.solr_field_type.disable_for_server:
  49. path: '/admin/config/search/search-api/server/{search_api_server}/solr_field_type/{solr_field_type}/disable'
  50. defaults:
  51. _title: 'Disable SolrFieldType for server'
  52. _controller: '\Drupal\search_api_solr\Controller\SolrFieldTypeController::disableOnServer'
  53. requirements:
  54. _permission: 'administer search_api'
  55. entity.solr_field_type.enable_for_server:
  56. path: '/admin/config/search/search-api/server/{search_api_server}/solr_field_type/{solr_field_type}/enable'
  57. defaults:
  58. _title: 'Enable SolrFieldType for server'
  59. _controller: '\Drupal\search_api_solr\Controller\SolrFieldTypeController::enableOnServer'
  60. requirements:
  61. _permission: 'administer search_api'
  62. solr_configset.schema_extra_types:
  63. path: '/admin/config/search/search-api/server/{search_api_server}/solr_configset/schema-extra-types'
  64. defaults:
  65. _title: 'schema_extra_types.xml'
  66. _controller: '\Drupal\search_api_solr\Controller\SolrConfigSetController::streamSchemaExtraTypesXml'
  67. options:
  68. parameters:
  69. search_api_server:
  70. type: entity:search_api_server
  71. with_config_overrides: TRUE
  72. requirements:
  73. _permission: 'administer search_api'
  74. _search_api_solr_local_action_access_check: 'TRUE'
  75. solr_configset.schema_extra_fields:
  76. path: '/admin/config/search/search-api/server/{search_api_server}/solr_configset/schema-extra-fields'
  77. defaults:
  78. _title: 'schema_extra_fields.xml'
  79. _controller: '\Drupal\search_api_solr\Controller\SolrConfigSetController::streamSchemaExtraFieldsXml'
  80. options:
  81. parameters:
  82. search_api_server:
  83. type: entity:search_api_server
  84. with_config_overrides: TRUE
  85. requirements:
  86. _permission: 'administer search_api'
  87. _search_api_solr_local_action_access_check: 'TRUE'
  88. solr_configset.solrconfig_extra:
  89. path: '/admin/config/search/search-api/server/{search_api_server}/solr_configset/solrconfig-extra'
  90. defaults:
  91. _title: 'solrconfig_extra.xml'
  92. _controller: '\Drupal\search_api_solr\Controller\SolrConfigSetController::streamSolrconfigExtraXml'
  93. options:
  94. parameters:
  95. search_api_server:
  96. type: entity:search_api_server
  97. with_config_overrides: TRUE
  98. requirements:
  99. _permission: 'administer search_api'
  100. _search_api_solr_local_action_access_check: 'TRUE'
  101. solr_configset.solrconfig_query:
  102. path: '/admin/config/search/search-api/server/{search_api_server}/solr_configset/solrconfig-query'
  103. defaults:
  104. _title: 'solrconfig_query.xml'
  105. _controller: '\Drupal\search_api_solr\Controller\SolrConfigSetController::streamSolrconfigQueryXml'
  106. options:
  107. parameters:
  108. search_api_server:
  109. type: entity:search_api_server
  110. with_config_overrides: TRUE
  111. requirements:
  112. _permission: 'administer search_api'
  113. _search_api_solr_local_action_access_check: 'TRUE'
  114. solr_configset.solrconfig_requestdispatcher:
  115. path: '/admin/config/search/search-api/server/{search_api_server}/solr_cconfigset/solrconfig-requestdispatcher'
  116. defaults:
  117. _title: 'solrconfig_requestdispatcher.xml'
  118. _controller: '\Drupal\search_api_solr\Controller\SolrConfigSetController::streamSolrconfigRequestDispatcherXml'
  119. options:
  120. parameters:
  121. search_api_server:
  122. type: entity:search_api_server
  123. with_config_overrides: TRUE
  124. requirements:
  125. _permission: 'administer search_api'
  126. _search_api_solr_local_action_access_check: 'TRUE'
  127. solr_configset.config_zip:
  128. path: '/admin/config/search/search-api/server/{search_api_server}/solr_configset/config-zip'
  129. defaults:
  130. _title: 'config.zip'
  131. _controller: '\Drupal\search_api_solr\Controller\SolrConfigSetController::streamConfigZip'
  132. options:
  133. parameters:
  134. search_api_server:
  135. type: entity:search_api_server
  136. with_config_overrides: TRUE
  137. requirements:
  138. _permission: 'administer search_api'
  139. _search_api_solr_local_action_access_check: 'TRUE'
  140. solr_configset.current_config_zip:
  141. path: '/admin/config/search/search-api/server/{search_api_server}/solr_configset/current-config-zip'
  142. defaults:
  143. _title: 'current_config.zip'
  144. _controller: '\Drupal\search_api_solr\Controller\SolrConfigSetController::streamCurrentConfigZip'
  145. options:
  146. parameters:
  147. search_api_server:
  148. type: entity:search_api_server
  149. with_config_overrides: TRUE
  150. requirements:
  151. _permission: 'administer search_api'
  152. _search_api_solr_local_action_access_check: 'TRUE'
  153. # SolrCache routing definition
  154. entity.solr_cache.collection:
  155. path: '/admin/config/search/search-api/server/{search_api_server}/solr_cache'
  156. defaults:
  157. _title: 'SolrCache Configuration'
  158. _controller: '\Drupal\search_api_solr\Controller\SolrCacheController::listing'
  159. options:
  160. parameters:
  161. search_api_server:
  162. type: entity:search_api_server
  163. with_config_overrides: TRUE
  164. requirements:
  165. _permission: 'administer search_api'
  166. _search_api_solr_local_action_access_check: 'TRUE'
  167. entity.solr_cache.disable_for_server:
  168. path: '/admin/config/search/search-api/server/{search_api_server}/solr_cache/{solr_cache}/disable'
  169. defaults:
  170. _title: 'Disable SolrCache for server'
  171. _controller: '\Drupal\search_api_solr\Controller\SolrCacheController::disableOnServer'
  172. requirements:
  173. _permission: 'administer search_api'
  174. entity.solr_cache.enable_for_server:
  175. path: '/admin/config/search/search-api/server/{search_api_server}/solr_cache/{solr_cache}/enable'
  176. defaults:
  177. _title: 'Enable SolrCache for server'
  178. _controller: '\Drupal\search_api_solr\Controller\SolrCacheController::enableOnServer'
  179. requirements:
  180. _permission: 'administer search_api'
  181. # Solr RequestHandler routing definition
  182. entity.solr_request_handler.collection:
  183. path: '/admin/config/search/search-api/server/{search_api_server}/solr_request_handler'
  184. defaults:
  185. _title: 'SolrRequestHandler Configuration'
  186. _controller: '\Drupal\search_api_solr\Controller\SolrRequestHandlerController::listing'
  187. options:
  188. parameters:
  189. search_api_server:
  190. type: entity:search_api_server
  191. with_config_overrides: TRUE
  192. requirements:
  193. _permission: 'administer search_api'
  194. _search_api_solr_local_action_access_check: 'TRUE'
  195. entity.solr_request_handler.disable_for_server:
  196. path: '/admin/config/search/search-api/server/{search_api_server}/solr_request_handler/{solr_request_handler}/disable'
  197. defaults:
  198. _title: 'Disable SolrRequestHandler for server'
  199. _controller: '\Drupal\search_api_solr\Controller\SolrRequestHandlerController::disableOnServer'
  200. requirements:
  201. _permission: 'administer search_api'
  202. entity.solr_request_handler.enable_for_server:
  203. path: '/admin/config/search/search-api/server/{search_api_server}/solr_request_handler/{solr_request_handler}/enable'
  204. defaults:
  205. _title: 'Enable SolrRequestHandler for server'
  206. _controller: '\Drupal\search_api_solr\Controller\SolrRequestHandlerController::enableOnServer'
  207. requirements:
  208. _permission: 'administer search_api'
  209. # Solr RequestDispatcher routing definition
  210. entity.solr_request_dispatcher.collection:
  211. path: '/admin/config/search/search-api/server/{search_api_server}/solr_request_dispatcher'
  212. defaults:
  213. _title: 'SolrRequestDispatcher Configuration'
  214. _controller: '\Drupal\search_api_solr\Controller\SolrRequestDispatcherController::listing'
  215. options:
  216. parameters:
  217. search_api_server:
  218. type: entity:search_api_server
  219. with_config_overrides: TRUE
  220. requirements:
  221. _permission: 'administer search_api'
  222. _search_api_solr_local_action_access_check: 'TRUE'
  223. entity.solr_request_dispatcher.disable_for_server:
  224. path: '/admin/config/search/search-api/server/{search_api_server}/solr_request_dispatcher/{solr_request_dispatcher}/disable'
  225. defaults:
  226. _title: 'Disable SolrRequestDispatcher for server'
  227. _controller: '\Drupal\search_api_solr\Controller\SolrRequestDispatcherController::disableOnServer'
  228. requirements:
  229. _permission: 'administer search_api'
  230. entity.solr_request_dispatcher.enable_for_server:
  231. path: '/admin/config/search/search-api/server/{search_api_server}/solr_request_dispatcher/{solr_request_dispatcher}/enable'
  232. defaults:
  233. _title: 'Enable SolrRequestDispatcher for server'
  234. _controller: '\Drupal\search_api_solr\Controller\SolrRequestDispatcherController::enableOnServer'
  235. requirements:
  236. _permission: 'administer search_api'
  237. entity.search_api_index.solr_multisite_clone_form:
  238. path: '/admin/config/search/search-api/index/{search_api_index}/solr_multisite_clone'
  239. defaults:
  240. _entity_form: 'search_api_index.solr_multisite_clone'
  241. requirements:
  242. _entity_access: 'search_api_index.edit'
  243. entity.search_api_index.solr_multisite_update_form:
  244. path: '/admin/config/search/search-api/index/{search_api_index}/solr_multisite_update'
  245. defaults:
  246. _entity_form: 'search_api_index.solr_multisite_update'
  247. requirements:
  248. _entity_access: 'search_api_index.edit'