public function ClusterManager::getDefaultCluster in Elasticsearch Connector 8.6
Same name and namespace in other branches
- 8.7 src/ClusterManager.php \Drupal\elasticsearch_connector\ClusterManager::getDefaultCluster()
- 8.5 src/ClusterManager.php \Drupal\elasticsearch_connector\ClusterManager::getDefaultCluster()
Get the default (cluster) used by Elasticsearch.
Return value
string The cluster identifier.
File
- src/
ClusterManager.php, line 44
Class
- ClusterManager
- ClusterManager service.
Namespace
Drupal\elasticsearch_connectorCode
public function getDefaultCluster() {
return $this->state
->get('elasticsearch_connector_get_default_connector', '');
}