public function SolrConfigSetController::getSolrconfigExtraXml in Search API Solr 8.3
Same name and namespace in other branches
- 4.x src/Controller/SolrConfigSetController.php \Drupal\search_api_solr\Controller\SolrConfigSetController::getSolrconfigExtraXml()
Provides an XML snippet containing all extra solrconfig.
Parameters
\Drupal\search_api\ServerInterface|null $search_api_server: The Search API server entity.
Return value
string XML snippet containing all extra solrconfig.
Throws
\Drupal\search_api\SearchApiException
2 calls to SolrConfigSetController::getSolrconfigExtraXml()
- SolrConfigSetController::getConfigFiles in src/Controller/ SolrConfigSetController.php 
- Returns the configuration files names and content.
- SolrConfigSetController::streamSolrconfigExtraXml in src/Controller/ SolrConfigSetController.php 
- Streams solrconfig_extra.xml.
File
- src/Controller/ SolrConfigSetController.php, line 118 
Class
- SolrConfigSetController
- Provides different listings of SolrFieldType.
Namespace
Drupal\search_api_solr\ControllerCode
public function getSolrconfigExtraXml(?ServerInterface $search_api_server = NULL) : string {
  /** @var \Drupal\search_api_solr\Controller\SolrFieldTypeListBuilder $solr_field_type_list_builder */
  $solr_field_type_list_builder = $this
    ->getListBuilder('solr_field_type', $search_api_server);
  /** @var \Drupal\search_api_solr\Controller\SolrRequestHandlerListBuilder $solr_request_handler_list_builder */
  $solr_request_handler_list_builder = $this
    ->getListBuilder('solr_request_handler', $search_api_server);
  return $solr_field_type_list_builder
    ->getSolrconfigExtraXml() . $solr_request_handler_list_builder
    ->getXml();
}