You are here

public function FacetSourcePluginBase::getQueryTypesForFacet in Facets 8

Returns the allowed query types for a given facet for the facet source.

Parameters

\Drupal\facets\FacetInterface $facet: The facet we should get query types for.

Return value

string[] array of allowed query types

Throws

\Drupal\facets\Exception\Exception An error when no query types are found.

Overrides FacetSourcePluginInterface::getQueryTypesForFacet

2 methods override FacetSourcePluginBase::getQueryTypesForFacet()
SearchApiBaseFacetSource::getQueryTypesForFacet in src/Plugin/facets/facet_source/SearchApiBaseFacetSource.php
Returns the allowed query types for a given facet for the facet source.
SearchApiDisplay::getQueryTypesForFacet in src/Plugin/facets/facet_source/SearchApiDisplay.php
Returns the allowed query types for a given facet for the facet source.

File

src/FacetSource/FacetSourcePluginBase.php, line 93

Class

FacetSourcePluginBase
Defines a base class from which other facet sources may extend.

Namespace

Drupal\facets\FacetSource

Code

public function getQueryTypesForFacet(FacetInterface $facet) {
  return [];
}