You are here

public function SearchApiSolrBackend::getEnvironment in Search API Solr 8.3

Same name and namespace in other branches
  1. 4.x src/Plugin/search_api/backend/SearchApiSolrBackend.php \Drupal\search_api_solr\Plugin\search_api\backend\SearchApiSolrBackend::getEnvironment()

Returns the targeted environment of the server.

Return value

string The environment.

Overrides SolrBackendInterface::getEnvironment

1 call to SearchApiSolrBackend::getEnvironment()
SearchApiSolrBackend::viewSettings in src/Plugin/search_api/backend/SearchApiSolrBackend.php

File

src/Plugin/search_api/backend/SearchApiSolrBackend.php, line 4287

Class

SearchApiSolrBackend
Apache Solr backend for search api.

Namespace

Drupal\search_api_solr\Plugin\search_api\backend

Code

public function getEnvironment() {
  return isset($this->configuration['environment']) && !empty($this->configuration['environment']) ? $this->configuration['environment'] : 'default';
}