public static function Cluster::getDefaultCluster in Elasticsearch Connector 8.2
Same name and namespace in other branches
- 8 src/Entity/Cluster.php \Drupal\elasticsearch_connector\Entity\Cluster::getDefaultCluster()
Get the default (cluster) used for elasticsearch.
Return value
string
TODO: Not sure that getting the default cluster in general should be part of the CLuster entity. TODO: Maybe check if that is a default Cluster entity - YES, but in general - NO.
6 calls to Cluster::getDefaultCluster()
- ClusterDeleteForm::submitForm in src/
Form/ ClusterDeleteForm.php - This is the default entity object builder function. It is called before any other submit handler to build the new entity object to be used by the following submit handlers. At this point of the form workflow the entity is validated and the form state…
- ClusterForm::buildEntityForm in src/
Form/ ClusterForm.php - ClusterForm::validateForm in src/
Form/ ClusterForm.php - Form validation handler.
- IndexForm::buildEntityForm in src/
Form/ IndexForm.php - SearchApiElasticsearchBackend::buildConfigurationForm in src/
Plugin/ search_api/ backend/ SearchApiElasticsearchBackend.php
File
- src/
Entity/ Cluster.php, line 115 - Contains \Drupal\elasticsearch_connector\Entity\Cluster.
Class
- Cluster
- Defines the Elasticsearch Connector Cluster configuration entity.
Namespace
Drupal\elasticsearch_connector\EntityCode
public static function getDefaultCluster() {
return \Drupal::state()
->get('elasticsearch_connector_get_default_connector', '');
}