You are here

public function SolrConfigSetController::getSchemaExtraTypesXml in Search API Solr 8.3

Same name and namespace in other branches
  1. 4.x src/Controller/SolrConfigSetController.php \Drupal\search_api_solr\Controller\SolrConfigSetController::getSchemaExtraTypesXml()

Provides an XML snippet containing all extra Solr field types.

Parameters

\Drupal\search_api\ServerInterface|null $search_api_server: The Search API server entity.

Return value

string XML snippet containing all extra Solr field types.

Throws

\Drupal\search_api\SearchApiException

2 calls to SolrConfigSetController::getSchemaExtraTypesXml()
SolrConfigSetController::getConfigFiles in src/Controller/SolrConfigSetController.php
Returns the configuration files names and content.
SolrConfigSetController::streamSchemaExtraTypesXml in src/Controller/SolrConfigSetController.php
Streams schema_extra_types.xml.

File

src/Controller/SolrConfigSetController.php, line 34

Class

SolrConfigSetController
Provides different listings of SolrFieldType.

Namespace

Drupal\search_api_solr\Controller

Code

public function getSchemaExtraTypesXml(?ServerInterface $search_api_server = NULL) : string {

  /** @var \Drupal\search_api_solr\Controller\SolrFieldTypeListBuilder $list_builder */
  $list_builder = $this
    ->getListBuilder('solr_field_type', $search_api_server);
  return $list_builder
    ->getSchemaExtraTypesXml();
}