protected function SearchApiDate::getGranularity in Facets 8
Retrieve configuration: Granularity to use.
Default behaviour an integer for the steps that the facet works in.
Return value
int The granularity for this config.
4 calls to SearchApiDate::getGranularity()
- SearchApiDate::calculateRangeAbsolute in src/
Plugin/ facets/ query_type/ SearchApiDate.php - Returns a start and end date based on a unix timestamp.
- SearchApiDate::calculateRangeRelative in src/
Plugin/ facets/ query_type/ SearchApiDate.php - Returns a start and end date based on a unix timestamp.
- SearchApiDate::calculateResultFilterAbsolute in src/
Plugin/ facets/ query_type/ SearchApiDate.php - SearchApiDate::calculateResultFilterRelative in src/
Plugin/ facets/ query_type/ SearchApiDate.php
File
- src/
Plugin/ facets/ query_type/ SearchApiDate.php, line 417
Class
- SearchApiDate
- Support for date facets within the Search API scope.
Namespace
Drupal\facets\Plugin\facets\query_typeCode
protected function getGranularity() {
return $this
->getConfiguration()['granularity'];
}