public static function Utility::getAvailableEnvironments in Search API Solr 8.3
Same name and namespace in other branches
- 4.x src/Utility/Utility.php \Drupal\search_api_solr\Utility\Utility::getAvailableEnvironments()
Get all available environments.
Return value
string[] An array of environments as strings.
1 call to Utility::getAvailableEnvironments()
- SearchApiSolrBackend::buildConfigurationForm in src/
Plugin/ search_api/ backend/ SearchApiSolrBackend.php
File
- src/
Utility/ Utility.php, line 1036
Class
- Utility
- Provides various helper functions for Solr backends.
Namespace
Drupal\search_api_solr\UtilityCode
public static function getAvailableEnvironments() {
$options = array_unique(array_merge(SolrCache::getAvailableEnvironments(), SolrRequestHandler::getAvailableEnvironments(), SolrRequestDispatcher::getAvailableEnvironments()));
sort($options);
return $options;
}