You are here

public function SolrConnectorInterface::getSolrMajorVersion in Search API Solr 8.2

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

Gets the current Solr major version.

Parameters

string $version: An optional Solr version string.

Return value

int The Solr major version.

1 method overrides SolrConnectorInterface::getSolrMajorVersion()
SolrConnectorPluginBase::getSolrMajorVersion in src/SolrConnector/SolrConnectorPluginBase.php
Gets the current Solr major version.

File

src/SolrConnectorInterface.php, line 53

Class

SolrConnectorInterface

Namespace

Drupal\search_api_solr

Code

public function getSolrMajorVersion($version = '');