public function SolrFieldType::getAsXml in Search API Solr 4.x
Same name and namespace in other branches
- 8.3 src/Entity/SolrFieldType.php \Drupal\search_api_solr\Entity\SolrFieldType::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.
Overrides SolrConfigInterface::getAsXml
File
- src/
Entity/ SolrFieldType.php, line 362
Class
- SolrFieldType
- Defines the SolrFieldType entity.
Namespace
Drupal\search_api_solr\EntityCode
public function getAsXml(bool $add_comment = TRUE) : string {
return $this
->getSubFieldTypeAsXml($this->field_type);
}