You are here

public function ClusterManager::getDefaultCluster in Elasticsearch Connector 8.6

Same name and namespace in other branches
  1. 8.7 src/ClusterManager.php \Drupal\elasticsearch_connector\ClusterManager::getDefaultCluster()
  2. 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_connector

Code

public function getDefaultCluster() {
  return $this->state
    ->get('elasticsearch_connector_get_default_connector', '');
}