public function SolrFieldTypeInterface::getFieldTypeAsXml in Search API Solr 8.2
Gets the Solr Field Type definition as XML fragment.
The XML format is used as part of a classic Solr schema.
Parameters
bool $add_commment: Wether to add a comment to the XML or not to explain the purpose of this Solr Field Type.
Return value
string The Solr Field Type definition as XML.
1 method overrides SolrFieldTypeInterface::getFieldTypeAsXml()
- SolrFieldType::getFieldTypeAsXml in src/
Entity/ SolrFieldType.php - Gets the Solr Field Type definition as XML fragment.
File
- src/
SolrFieldTypeInterface.php, line 90
Class
- SolrFieldTypeInterface
- Provides an interface defining a SolrFieldType entity.
Namespace
Drupal\search_api_solrCode
public function getFieldTypeAsXml($add_commment = TRUE);