You are here

protected function SolrConnectorPluginBase::getEndpointUri in Search API Solr 4.x

Gets a string representation of the endpoint URI.

Could be overwritten by other connectors according to their needs.

Parameters

\Solarium\Core\Client\Endpoint $endpoint:

Return value

string

1 call to SolrConnectorPluginBase::getEndpointUri()
SolrConnectorPluginBase::handleHttpException in src/SolrConnector/SolrConnectorPluginBase.php
Converts a HttpException in an easier to read SearchApiSolrException.

File

src/SolrConnector/SolrConnectorPluginBase.php, line 1038

Class

SolrConnectorPluginBase
Defines a base class for Solr connector plugins.

Namespace

Drupal\search_api_solr\SolrConnector

Code

protected function getEndpointUri(Endpoint $endpoint) : string {
  return $endpoint
    ->getServerUri();
}