You are here

public function SolrConnectorPluginBase::getSolrBranch in Search API Solr 8.3

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

Gets the current Solr branch name.

Parameters

string $version: An optional Solr version string.

Return value

string The Solr branch string.

Overrides SolrConnectorInterface::getSolrBranch

File

src/SolrConnector/SolrConnectorPluginBase.php, line 436

Class

SolrConnectorPluginBase
Defines a base class for Solr connector plugins.

Namespace

Drupal\search_api_solr\SolrConnector

Code

public function getSolrBranch($version = '') {
  return $this
    ->getSolrMajorVersion($version) . '.x';
}