public function SolrFieldType::getCollatedFieldTypeAsXml 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::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.
Overrides SolrFieldTypeInterface::getCollatedFieldTypeAsXml
File
- src/
Entity/ SolrFieldType.php, line 377
Class
- SolrFieldType
- Defines the SolrFieldType entity.
Namespace
Drupal\search_api_solr\EntityCode
public function getCollatedFieldTypeAsXml($add_comment = TRUE) {
return $this->collated_field_type ? $this
->getSubFieldTypeAsXml($this->collated_field_type, ' collated') : '';
}