public function SolrConnectorPluginBase::getTimeout in Search API Solr 8.3
Same name and namespace in other branches
- 8.2 src/SolrConnector/SolrConnectorPluginBase.php \Drupal\search_api_solr\SolrConnector\SolrConnectorPluginBase::getTimeout()
- 4.x src/SolrConnector/SolrConnectorPluginBase.php \Drupal\search_api_solr\SolrConnector\SolrConnectorPluginBase::getTimeout()
Get the query timeout.
Parameters
\Solarium\Core\Client\Endpoint|null $endpoint: (optional) The Solarium endpoint object.
Return value
int The current query timeout value.
Overrides SolrConnectorInterface::getTimeout
File
- src/
SolrConnector/ SolrConnectorPluginBase.php, line 976
Class
- SolrConnectorPluginBase
- Defines a base class for Solr connector plugins.
Namespace
Drupal\search_api_solr\SolrConnectorCode
public function getTimeout(?Endpoint $endpoint = NULL) {
$this
->connect();
if (!$endpoint) {
$endpoint = $this->solr
->getEndpoint();
}
return $endpoint
->getOption(self::QUERY_TIMEOUT);
}