protected function SearchApiGranular::getMaxValue in Facets 8
Looks at the configuration for this facet to determine the max value.
Default behaviour an integer for the maximum value of the facets.
Return value
mixed It can be a number or an empty value.
1 call to SearchApiGranular::getMaxValue()
- SearchApiGranular::calculateResultFilter in src/
Plugin/ facets/ query_type/ SearchApiGranular.php - Calculate the grouped facet filter for a given value.
File
- src/
Plugin/ facets/ query_type/ SearchApiGranular.php, line 124
Class
- SearchApiGranular
- Basic support for numeric facets grouping by a granularity value.
Namespace
Drupal\facets\Plugin\facets\query_typeCode
protected function getMaxValue() {
return $this->facet
->getProcessors()['granularity_item']
->getConfiguration()['max_value'];
}