You are here

public function SolrConnectorPluginBase::getEndpoint in Search API Solr 8

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

Returns an endpoint.

Parameters

string $key:

Return value

\Solarium\Core\Client\Endpoint

Overrides SolrConnectorInterface::getEndpoint

File

src/SolrConnector/SolrConnectorPluginBase.php, line 954

Class

SolrConnectorPluginBase
Defines a base class for Solr connector plugins.

Namespace

Drupal\search_api_solr\SolrConnector

Code

public function getEndpoint($key = 'core') {
  $this
    ->connect();
  return $this->solr
    ->getEndpoint($key);
}