public function SolrFieldType::getDomains in Search API Solr 4.x
Same name and namespace in other branches
- 8.3 src/Entity/SolrFieldType.php \Drupal\search_api_solr\Entity\SolrFieldType::getDomains()
 - 8.2 src/Entity/SolrFieldType.php \Drupal\search_api_solr\Entity\SolrFieldType::getDomains()
 
Gets the domains the field type is suitable for.
Return value
string[] An array of domains as strings.
Overrides SolrFieldTypeInterface::getDomains
1 call to SolrFieldType::getDomains()
- SolrFieldType::getOptions in src/
Entity/ SolrFieldType.php  
File
- src/
Entity/ SolrFieldType.php, line 191  
Class
- SolrFieldType
 - Defines the SolrFieldType entity.
 
Namespace
Drupal\search_api_solr\EntityCode
public function getDomains() {
  return empty($this->domains) ? [
    'generic',
  ] : $this->domains;
}