You are here

public function SolrConnectorPluginBase::getServerInfo in Search API Solr 8.2

Same name and namespace in other branches
  1. 8.3 src/SolrConnector/SolrConnectorPluginBase.php \Drupal\search_api_solr\SolrConnector\SolrConnectorPluginBase::getServerInfo()
  2. 8 src/SolrConnector/SolrConnectorPluginBase.php \Drupal\search_api_solr\SolrConnector\SolrConnectorPluginBase::getServerInfo()
  3. 4.x src/SolrConnector/SolrConnectorPluginBase.php \Drupal\search_api_solr\SolrConnector\SolrConnectorPluginBase::getServerInfo()

Gets information about the Solr server.

Parameters

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

Return value

object A response object with server information.

Throws

\Drupal\search_api_solr\SearchApiSolrException

Overrides SolrConnectorInterface::getServerInfo

1 call to SolrConnectorPluginBase::getServerInfo()
SolrConnectorPluginBase::getSolrVersion in src/SolrConnector/SolrConnectorPluginBase.php
Gets the current Solr version.

File

src/SolrConnector/SolrConnectorPluginBase.php, line 418

Class

SolrConnectorPluginBase
Defines a base class for Solr connector plugins.

Namespace

Drupal\search_api_solr\SolrConnector

Code

public function getServerInfo($reset = FALSE) {
  return $this
    ->getDataFromHandler('server', 'admin/info/system', $reset);
}