public static function Cluster::loadAllClusters in Elasticsearch Connector 8.2
Same name and namespace in other branches
- 8 src/Entity/Cluster.php \Drupal\elasticsearch_connector\Entity\Cluster::loadAllClusters()
Load all clusters.
Parameters
bool $include_inactive:
Return value
\Drupal\elasticsearch_connector\Entity\Cluster[]
2 calls to Cluster::loadAllClusters()
- elasticsearch_connector_views_views_data in modules/
elasticsearch_connector_views/ elasticsearch_connector_views.views.inc - Implements hook_views_data().
- SearchApiElasticsearchBackend::buildConfigurationForm in src/
Plugin/ search_api/ backend/ SearchApiElasticsearchBackend.php
File
- src/
Entity/ Cluster.php, line 143 - Contains \Drupal\elasticsearch_connector\Entity\Cluster.
Class
- Cluster
- Defines the Elasticsearch Connector Cluster configuration entity.
Namespace
Drupal\elasticsearch_connector\EntityCode
public static function loadAllClusters($include_inactive = TRUE) {
$clusters = self::loadMultiple();
foreach ($clusters as $cluster) {
if (!$include_inactive && !$cluster->status) {
unset($clusters[$cluster->cluster_id]);
}
}
return $clusters;
}