public function SolrConnectorInterface::getSolrMajorVersion in Search API Solr 4.x
Same name and namespace in other branches
- 8.3 src/SolrConnectorInterface.php \Drupal\search_api_solr\SolrConnectorInterface::getSolrMajorVersion()
- 8 src/SolrConnectorInterface.php \Drupal\search_api_solr\SolrConnectorInterface::getSolrMajorVersion()
- 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_solrCode
public function getSolrMajorVersion($version = '') : int;