You are here

public function SolrConfigSetController::getSolrconfigQueryXml 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::getSolrconfigQueryXml()

Provides an XML snippet containing all query cache settings as XML.

Parameters

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

Return value

string XML snippet containing all query cache settings.

Throws

\Drupal\search_api\SearchApiException

2 calls to SolrConfigSetController::getSolrconfigQueryXml()
SolrConfigSetController::getConfigFiles in src/Controller/SolrConfigSetController.php
Returns the configuration files names and content.
SolrConfigSetController::streamSolrconfigQueryXml in src/Controller/SolrConfigSetController.php
Streams solrconfig_query.xml.

File

src/Controller/SolrConfigSetController.php, line 160

Class

SolrConfigSetController
Provides different listings of SolrFieldType.

Namespace

Drupal\search_api_solr\Controller

Code

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

  /** @var \Drupal\search_api_solr\Controller\SolrCacheListBuilder $list_builder */
  $list_builder = $this
    ->getListBuilder('solr_cache', $search_api_server);
  return $list_builder
    ->getXml();
}