public function SolrFieldTypeListBuilder::getSchemaExtraTypesXml in Search API Solr 8.3
Same name and namespace in other branches
- 8.2 src/Controller/SolrFieldTypeListBuilder.php \Drupal\search_api_solr\Controller\SolrFieldTypeListBuilder::getSchemaExtraTypesXml()
- 4.x src/Controller/SolrFieldTypeListBuilder.php \Drupal\search_api_solr\Controller\SolrFieldTypeListBuilder::getSchemaExtraTypesXml()
Returns the formatted XML for schema_extra_types.xml.
Throws
\Drupal\search_api\SearchApiException
File
- src/
Controller/ SolrFieldTypeListBuilder.php, line 237
Class
- SolrFieldTypeListBuilder
- Provides a listing of SolrFieldType.
Namespace
Drupal\search_api_solr\ControllerCode
public function getSchemaExtraTypesXml() {
$xml = '';
/** @var \Drupal\search_api_solr\SolrFieldTypeInterface $solr_field_type */
foreach ($this
->getEnabledEntities() as $solr_field_type) {
$xml .= $solr_field_type
->getAsXml();
$xml .= $solr_field_type
->getSpellcheckFieldTypeAsXml();
$xml .= $solr_field_type
->getCollatedFieldTypeAsXml();
$xml .= $solr_field_type
->getUnstemmedFieldTypeAsXml();
}
return $xml;
}