public function SolrSerializer::render in Search API Federated Solr 8.2
Same name and namespace in other branches
- 8.3 src/Plugin/views/style/SolrSerializer.php \Drupal\search_api_federated_solr\Plugin\views\style\SolrSerializer::render()
- 4.x src/Plugin/views/style/SolrSerializer.php \Drupal\search_api_federated_solr\Plugin\views\style\SolrSerializer::render()
Render the display in this style.
Overrides Serializer::render
File
- src/
Plugin/ views/ style/ SolrSerializer.php, line 26
Class
- SolrSerializer
- The style plugin for serialized output formats.
Namespace
Drupal\search_api_federated_solr\Plugin\views\styleCode
public function render() {
$render = parent::render();
// Wrap the Solr response object around the view results.
$render = '{
"response": {
"docs":' . $render . '}
}';
return $render;
}