You are here

public function SolrConnectorPluginBase::coreRestGet in Search API Solr 8.2

Same name and namespace in other branches
  1. 8.3 src/SolrConnector/SolrConnectorPluginBase.php \Drupal\search_api_solr\SolrConnector\SolrConnectorPluginBase::coreRestGet()
  2. 8 src/SolrConnector/SolrConnectorPluginBase.php \Drupal\search_api_solr\SolrConnector\SolrConnectorPluginBase::coreRestGet()
  3. 4.x src/SolrConnector/SolrConnectorPluginBase.php \Drupal\search_api_solr\SolrConnector\SolrConnectorPluginBase::coreRestGet()

Sends a REST GET request to the Solr core and returns the result.

Parameters

string $path: The path to append to the base URI.

Return value

string The decoded response.

Overrides SolrConnectorInterface::coreRestGet

File

src/SolrConnector/SolrConnectorPluginBase.php, line 596

Class

SolrConnectorPluginBase
Defines a base class for Solr connector plugins.

Namespace

Drupal\search_api_solr\SolrConnector

Code

public function coreRestGet($path) {
  return $this
    ->restRequest('core', $path);
}