You are here

public function SolrRequestHandler::getEnvironments in Search API Solr 8.3

Same name and namespace in other branches
  1. 4.x src/Entity/SolrRequestHandler.php \Drupal\search_api_solr\Entity\SolrRequestHandler::getEnvironments()

Gets the environments targeted by this Solr RequestHandler.

Return value

string[] Environments.

Overrides SolrRequestHandlerInterface::getEnvironments

1 call to SolrRequestHandler::getEnvironments()
SolrRequestHandler::getOptions in src/Entity/SolrRequestHandler.php

File

src/Entity/SolrRequestHandler.php, line 83

Class

SolrRequestHandler
Defines the SolrRequestHandler entity.

Namespace

Drupal\search_api_solr\Entity

Code

public function getEnvironments() {
  return empty($this->environments) ? [
    'default',
  ] : $this->environments;
}