You are here

public function SolrFieldTypeInterface::getCollatedFieldTypeAsXml in Search API Solr 8.3

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

Gets the Solr Collated Field Type definition as XML fragment.

The XML format is used as part of classic Solr schema.

Parameters

bool $add_comment: Wether to add a comment to the XML or not to explain the purpose of thid Solr Field Type.

Return value

string The Solr Collated Field Type definition as XML, might be empty if it doesn't exist.

1 method overrides SolrFieldTypeInterface::getCollatedFieldTypeAsXml()
SolrFieldType::getCollatedFieldTypeAsXml in src/Entity/SolrFieldType.php
Gets the Solr Collated Field Type definition as XML fragment.

File

src/SolrFieldTypeInterface.php, line 215

Class

SolrFieldTypeInterface
Provides an interface defining a SolrFieldType entity.

Namespace

Drupal\search_api_solr

Code

public function getCollatedFieldTypeAsXml($add_comment = TRUE);