You are here

public function SolrConfigInterface::getAsXml in Search API Solr 8.3

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

Gets the Solr Entity definition as XML fragment.

The XML format is used as part of a solrconfig.xml.

Parameters

bool $add_comment: Wether to add a comment to the XML or not to explain the purpose of this Solr Entity.

Return value

string The Solr RequestHandler definition as XML.

4 methods override SolrConfigInterface::getAsXml()
SolrCache::getAsXml in src/Entity/SolrCache.php
Gets the Solr Entity definition as XML fragment.
SolrFieldType::getAsXml in src/Entity/SolrFieldType.php
Gets the Solr Entity definition as XML fragment.
SolrRequestDispatcher::getAsXml in src/Entity/SolrRequestDispatcher.php
Gets the Solr Entity definition as XML fragment.
SolrRequestHandler::getAsXml in src/Entity/SolrRequestHandler.php
Gets the Solr Entity definition as XML fragment.

File

src/SolrConfigInterface.php, line 92

Class

SolrConfigInterface
Provides an interface defining a Solr Config entity.

Namespace

Drupal\search_api_solr

Code

public function getAsXml(bool $add_comment = TRUE) : string;