You are here

public function SolrFieldDefinition::getDynamicBase in Search API Solr 8.3

Same name and namespace in other branches
  1. 8.2 src/TypedData/SolrFieldDefinition.php \Drupal\search_api_solr\TypedData\SolrFieldDefinition::getDynamicBase()
  2. 4.x src/TypedData/SolrFieldDefinition.php \Drupal\search_api_solr\TypedData\SolrFieldDefinition::getDynamicBase()

Gets the "dynamic base" of this field.

This typically looks like 'ss_*, and is used to aggregate fields based on "hungarian" naming conventions.

Return value

string The mask describing the solr aggregate field, if there is one.

Overrides SolrFieldDefinitionInterface::getDynamicBase

1 call to SolrFieldDefinition::getDynamicBase()
SolrFieldDefinition::isPossibleKey in src/TypedData/SolrFieldDefinition.php
Determine whether this field may be suitable for use as a key field.

File

src/TypedData/SolrFieldDefinition.php, line 83

Class

SolrFieldDefinition
Defines a class for Solr field definitions.

Namespace

Drupal\search_api_solr\TypedData

Code

public function getDynamicBase() {
  return isset($this->field['dynamicBase']) ? $this->field['dynamicBase'] : NULL;
}