protected function SolrConfigSetController::streamXml in Search API Solr 8.3
Same name and namespace in other branches
- 4.x src/Controller/SolrConfigSetController.php \Drupal\search_api_solr\Controller\SolrConfigSetController::streamXml()
Provides an XML snippet containing all query cache settings as XML.
Parameters
\Drupal\search_api_solr\Controller\string $file_name: The file name.
\Drupal\search_api_solr\Controller\string $xml: The XML.
Return value
\Symfony\Component\HttpFoundation\Response The HTTP response object.
5 calls to SolrConfigSetController::streamXml()
- SolrConfigSetController::streamSchemaExtraFieldsXml in src/
Controller/ SolrConfigSetController.php - Streams schema_extra_fields.xml.
- SolrConfigSetController::streamSchemaExtraTypesXml in src/
Controller/ SolrConfigSetController.php - Streams schema_extra_types.xml.
- SolrConfigSetController::streamSolrconfigExtraXml in src/
Controller/ SolrConfigSetController.php - Streams solrconfig_extra.xml.
- SolrConfigSetController::streamSolrconfigQueryXml in src/
Controller/ SolrConfigSetController.php - Streams solrconfig_query.xml.
- SolrConfigSetController::streamSolrconfigRequestDispatcherXml in src/
Controller/ SolrConfigSetController.php - Streams solrconfig_requestdispatcher.xml.
File
- src/
Controller/ SolrConfigSetController.php, line 391
Class
- SolrConfigSetController
- Provides different listings of SolrFieldType.
Namespace
Drupal\search_api_solr\ControllerCode
protected function streamXml(string $file_name, string $xml) : Response {
return new Response($xml, 200, [
'Content-Type' => 'application/xml',
'Content-Disposition' => 'attachment; filename=' . $file_name,
]);
}