public function SolrConnectorPluginBase::getSchemaVersion in Search API Solr 8.2
Same name and namespace in other branches
- 8.3 src/SolrConnector/SolrConnectorPluginBase.php \Drupal\search_api_solr\SolrConnector\SolrConnectorPluginBase::getSchemaVersion()
- 8 src/SolrConnector/SolrConnectorPluginBase.php \Drupal\search_api_solr\SolrConnector\SolrConnectorPluginBase::getSchemaVersion()
- 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 446
Class
- SolrConnectorPluginBase
- Defines a base class for Solr connector plugins.
Namespace
Drupal\search_api_solr\SolrConnectorCode
public function getSchemaVersion($reset = FALSE) {
$parts = explode('-', $this
->getSchemaVersionString($reset));
return $parts[1];
}