You are here

public function SolrFieldType::getDomains in Search API Solr 8.2

Same name and namespace in other branches
  1. 8.3 src/Entity/SolrFieldType.php \Drupal\search_api_solr\Entity\SolrFieldType::getDomains()
  2. 4.x src/Entity/SolrFieldType.php \Drupal\search_api_solr\Entity\SolrFieldType::getDomains()

Gets the domains the field type is suitable for.

Return value

string[]

Overrides SolrFieldTypeInterface::getDomains

File

src/Entity/SolrFieldType.php, line 137

Class

SolrFieldType
Defines the SolrFieldType entity.

Namespace

Drupal\search_api_solr\Entity

Code

public function getDomains() {
  return empty($this->domains) ? [
    'generic',
  ] : $this->domains;
}