public function SolrConnectorPluginBase::coreRestGet in Search API Solr 4.x
Same name and namespace in other branches
- 8.3 src/SolrConnector/SolrConnectorPluginBase.php \Drupal\search_api_solr\SolrConnector\SolrConnectorPluginBase::coreRestGet()
- 8 src/SolrConnector/SolrConnectorPluginBase.php \Drupal\search_api_solr\SolrConnector\SolrConnectorPluginBase::coreRestGet()
- 8.2 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.
\Solarium\Core\Client\Endpoint|null $endpoint:
Return value
string The decoded response.
Throws
\Drupal\search_api_solr\SearchApiSolrException
Overrides SolrConnectorInterface::coreRestGet
1 method overrides SolrConnectorPluginBase::coreRestGet()
- Solr36Connector::coreRestGet in modules/
search_api_solr_legacy/ src/ Plugin/ SolrConnector/ Solr36Connector.php - Sends a REST GET request to the Solr core and returns the result.
File
- src/
SolrConnector/ SolrConnectorPluginBase.php, line 696
Class
- SolrConnectorPluginBase
- Defines a base class for Solr connector plugins.
Namespace
Drupal\search_api_solr\SolrConnectorCode
public function coreRestGet($path, ?Endpoint $endpoint = NULL) {
$this
->useTimeout();
return $this
->restRequest($this->configuration['core'] . '/' . ltrim($path, '/'), Request::METHOD_GET, '', $endpoint);
}