You are here

public function SolrConnectorInterface::getSolrMajorVersion in Search API Solr 4.x

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. 8.2 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 78

Class

SolrConnectorInterface
The Solr connector interface.

Namespace

Drupal\search_api_solr

Code

public function getSolrMajorVersion($version = '') : int;