protected static function AcquiaSearchSolrEnvironment::overrideUrl in Acquia Connector 7.3
Overrides search index URL.
Parameters
\AcquiaSearchSolrPreferredIndex $preferredIndexService: Preferred index service.
array $environment_config: Environment configuration.
Return value
array Overridden environment.
1 call to AcquiaSearchSolrEnvironment::overrideUrl()
- AcquiaSearchSolrEnvironment::override in acquia_search/
includes/ AcquiaSearchSolrEnvironment.php - Overrides search environments configuration.
File
- acquia_search/
includes/ AcquiaSearchSolrEnvironment.php, line 196
Class
- AcquiaSearchSolrEnvironment
- Class AcquiaSearchSolrEnvironment.
Code
protected static function overrideUrl(AcquiaSearchSolrPreferredIndex $preferredIndexService, array $environment_config) {
$index_url = $preferredIndexService
->getPreferredIndexUrl();
$environment_config['url'] = $index_url ?? self::DEFAULT_SOLR_URL;
drupal_static_reset('apachesolr_load_all_environments');
return $environment_config;
}