You are here

public function SearchApiSolrAcquiaConnector::getSolrVersion in Acquia Search 3.x

Gets the current Solr version.

Parameters

bool $force_auto_detect: If TRUE, ignore user overwrites.

Return value

string The full Solr version string.

Overrides SolrConnectorPluginBase::getSolrVersion

File

src/Plugin/SolrConnector/SearchApiSolrAcquiaConnector.php, line 443

Class

SearchApiSolrAcquiaConnector
Class SearchApiSolrAcquiaConnector.

Namespace

Drupal\acquia_search\Plugin\SolrConnector

Code

public function getSolrVersion($force_auto_detect = FALSE) {
  try {
    return parent::getSolrVersion($force_auto_detect);
  } catch (\Exception $exception) {
    return $this
      ->t('Unavailable: @message', [
      '@message' => $exception
        ->getMessage(),
    ]);
  }
}