You are here

public function SolrFieldTypeController::getSchemaExtraFieldsXml in Search API Solr 8.2

Provides an XML snippet containing all extra Solr fields.

Parameters

\Drupal\search_api\ServerInterface $search_api_server:

Return value

\Symfony\Component\HttpFoundation\Response

Throws

\Drupal\search_api\SearchApiException

1 string reference to 'SolrFieldTypeController::getSchemaExtraFieldsXml'
search_api_solr.routing.yml in ./search_api_solr.routing.yml
search_api_solr.routing.yml

File

src/Controller/SolrFieldTypeController.php, line 57

Class

SolrFieldTypeController
Provides different listings of SolrFieldType.

Namespace

Drupal\search_api_solr\Controller

Code

public function getSchemaExtraFieldsXml(ServerInterface $search_api_server) {
  return new Response($this
    ->getListBuilder($search_api_server)
    ->getSchemaExtraFieldsXml(), 200, [
    'Content-Type' => 'application/xml',
    'Content-Disposition' => 'attachment; filename=schema_extra_fields.xml',
  ]);
}