public function Cluster::getClusterInfo in Elasticsearch Connector 8
Return cluster info.
Return value
array Info array.
Throws
\Exception Exception().
File
- src/
Entity/ Cluster.php, line 159 - Contains \Drupal\elasticsearch_connector\Entity\Cluster.
Class
- Cluster
- Defines the search server configuration entity.
Namespace
Drupal\elasticsearch_connector\EntityCode
public function getClusterInfo() {
try {
$client = self::getClientInstance($this);
$result = $client
->getClusterInfo();
} catch (\Exception $e) {
throw $e;
}
return $result;
}