abstract public function QueryTypeRangeBase::calculateRange in Facets 8
Calculate the range for a given facet filter value.
Used when adding active items in self::execute() to $this->query to include the range conditions for the value.
Parameters
string $value: The raw value for the facet filter.
Return value
array Keyed with 'start' and 'stop' values.
1 call to QueryTypeRangeBase::calculateRange()
- QueryTypeRangeBase::execute in src/
QueryType/ QueryTypeRangeBase.php - Adds facet info to the query using the backend native query object.
2 methods override QueryTypeRangeBase::calculateRange()
- SearchApiDate::calculateRange in src/
Plugin/ facets/ query_type/ SearchApiDate.php - Calculate the range for a given facet filter value.
- SearchApiGranular::calculateRange in src/
Plugin/ facets/ query_type/ SearchApiGranular.php - Calculate the range for a given facet filter value.
File
- src/
QueryType/ QueryTypeRangeBase.php, line 58
Class
- QueryTypeRangeBase
- A base class for query type plugins adding range.
Namespace
Drupal\facets\QueryTypeCode
public abstract function calculateRange($value);