public function SolrConfigSetController::streamSchemaExtraTypesXml 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::streamSchemaExtraTypesXml()
Streams schema_extra_types.xml.
Parameters
\Drupal\search_api\ServerInterface $search_api_server: The Search API server entity.
Return value
\Symfony\Component\HttpFoundation\Response The HTTP response object.
Throws
\Drupal\search_api\SearchApiException
\Drupal\Core\Entity\EntityMalformedException
1 string reference to 'SolrConfigSetController::streamSchemaExtraTypesXml'
File
- src/
Controller/ SolrConfigSetController.php, line 52
Class
- SolrConfigSetController
- Provides different listings of SolrFieldType.
Namespace
Drupal\search_api_solr\ControllerCode
public function streamSchemaExtraTypesXml(ServerInterface $search_api_server) : Response {
try {
return $this
->streamXml('schema_extra_types.xml', $this
->getSchemaExtraTypesXml($search_api_server));
} catch (SearchApiSolrConflictingEntitiesException $e) {
$this
->messenger()
->addError($this
->t('Some enabled parts of the configuration conflict with others: :conflicts', [
'@conflicts' => new FormattableMarkup($e, []),
]));
}
return new RedirectResponse($search_api_server
->toUrl('canonical')
->toString());
}