You are here

public function SolrFieldTypeController::getSchemaExtraTypesXml in Search API Solr 8.2

Provides an XML snippet containing all extra Solr field types.

Parameters

\Drupal\search_api\ServerInterface $search_api_server:

Return value

\Symfony\Component\HttpFoundation\Response

Throws

\Drupal\search_api\SearchApiException

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

File

src/Controller/SolrFieldTypeController.php, line 37

Class

SolrFieldTypeController
Provides different listings of SolrFieldType.

Namespace

Drupal\search_api_solr\Controller

Code

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