protected function SolrFieldTypeListBuilder::getExtraFileFoot in Search API Multilingual Solr Search 8
Creates the foot part of an extra file XML (not wellformed on its own).
Parameters
$target_solr_version: string The version string of the Solr version to create the file for.
$legacy_element: string The XML element to use as a wrapper for versions of Solr below 6.0.0.
Return value
string The created fragment.
2 calls to SolrFieldTypeListBuilder::getExtraFileFoot()
File
- src/
Controller/ SolrFieldTypeListBuilder.php, line 309
Class
- SolrFieldTypeListBuilder
- Provides a listing of SolrFieldType.
Namespace
Drupal\search_api_solr_multilingual\ControllerCode
protected function getExtraFileFoot($target_solr_version, $legacy_element) {
$foot = '';
if (version_compare($target_solr_version, '6.0.0', '<')) {
$foot .= "</{$legacy_element}>";
}
return $foot;
}