You are here

public function FacetSourcePluginInterface::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.

1 method overrides FacetSourcePluginInterface::getQueryTypesForFacet()
FacetSourcePluginBase::getQueryTypesForFacet in src/FacetSource/FacetSourcePluginBase.php
Returns the allowed query types for a given facet for the facet source.

File

src/FacetSource/FacetSourcePluginInterface.php, line 40

Class

FacetSourcePluginInterface
Describes a source for facet items.

Namespace

Drupal\facets\FacetSource

Code

public function getQueryTypesForFacet(FacetInterface $facet);