You are here

public function SolrConnectorPluginBase::getSchemaVersion 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::getSchemaVersion()
  2. 8.2 src/SolrConnector/SolrConnectorPluginBase.php \Drupal\search_api_solr\SolrConnector\SolrConnectorPluginBase::getSchemaVersion()
  3. 4.x src/SolrConnector/SolrConnectorPluginBase.php \Drupal\search_api_solr\SolrConnector\SolrConnectorPluginBase::getSchemaVersion()

Gets the schema version number.

Parameters

bool $reset: If TRUE the server will be asked regardless if a previous call is cached.

Return value

string The schema version number.

Overrides SolrConnectorInterface::getSchemaVersion

File

src/SolrConnector/SolrConnectorPluginBase.php, line 459

Class

SolrConnectorPluginBase
Defines a base class for Solr connector plugins.

Namespace

Drupal\search_api_solr\SolrConnector

Code

public function getSchemaVersion($reset = FALSE) {
  $parts = explode('-', $this
    ->getSchemaVersionString($reset));
  return $parts[1];
}