You are here

protected function SearchApiGranular::getFacetOptions in Facets 8

Builds facet options that will be send to the backend.

Return value

array An array of default options for the facet.

Overrides QueryTypePluginBase::getFacetOptions

File

src/Plugin/facets/query_type/SearchApiGranular.php, line 87

Class

SearchApiGranular
Basic support for numeric facets grouping by a granularity value.

Namespace

Drupal\facets\Plugin\facets\query_type

Code

protected function getFacetOptions() {
  return $this->facet
    ->getProcessors()['granularity_item']
    ->getConfiguration() + parent::getFacetOptions();
}