You are here

public function SolrCache::getEnvironments in Search API Solr 8.3

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

Gets the environments targeted by this Solr Cache.

Return value

string[] Environments.

Overrides SolrCacheInterface::getEnvironments

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

File

src/Entity/SolrCache.php, line 74

Class

SolrCache
Defines the SolrCache entity.

Namespace

Drupal\search_api_solr\Entity

Code

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