public function AbstractSolrEntityListBuilder::getXml in Search API Solr 8.3
Same name and namespace in other branches
- 4.x src/Controller/AbstractSolrEntityListBuilder.php \Drupal\search_api_solr\Controller\AbstractSolrEntityListBuilder::getXml()
 
Returns the formatted XML for the entities.
Return value
string The formatted XML for the entities.
Throws
\Drupal\search_api\SearchApiException
File
- src/
Controller/ AbstractSolrEntityListBuilder.php, line 291  
Class
- AbstractSolrEntityListBuilder
 - Provides a listing of Solr Entities.
 
Namespace
Drupal\search_api_solr\ControllerCode
public function getXml() {
  $xml = '';
  /** @var \Drupal\search_api_solr\SolrConfigInterface $solr_entities */
  foreach ($this
    ->getEnabledEntities() as $solr_entities) {
    $xml .= $solr_entities
      ->getAsXml();
  }
  foreach ($this
    ->load() as $solr_entities) {
    $xml .= $solr_entities
      ->getSolrConfigsAsXml();
  }
  return $xml;
}