You are here

public function ProcessorPluginBase::supportsFacet in Facets 8

Checks if the facet is supported by this widget.

Reasons why this would be unsupported can be chosen by the widget.

Parameters

\Drupal\facets\FacetInterface $facet: The facet to check for.

Return value

bool Returns true when allowed, false otherwise.

Overrides ProcessorInterface::supportsFacet

See also

\Drupal\facets\Widget\WidgetPluginInterface::supportsFacet

6 methods override ProcessorPluginBase::supportsFacet()
BooleanItemProcessor::supportsFacet in src/Plugin/facets/processor/BooleanItemProcessor.php
Checks if the facet is supported by this widget.
TermWeightWidgetOrderProcessor::supportsFacet in src/Plugin/facets/processor/TermWeightWidgetOrderProcessor.php
Checks if the facet is supported by this widget.
TestPreQuery::supportsFacet in tests/facets_custom_widget/src/Plugin/facets/processor/TestPreQuery.php
Checks if the facet is supported by this widget.
TranslateEntityAggregatedFieldProcessor::supportsFacet in src/Plugin/facets/processor/TranslateEntityAggregatedFieldProcessor.php
Checks if the facet is supported by this widget.
TranslateEntityProcessor::supportsFacet in src/Plugin/facets/processor/TranslateEntityProcessor.php
Checks if the facet is supported by this widget.

... See full list

File

src/Processor/ProcessorPluginBase.php, line 113

Class

ProcessorPluginBase
A base class for plugins that implements most of the boilerplate.

Namespace

Drupal\facets\Processor

Code

public function supportsFacet(FacetInterface $facet) {
  return TRUE;
}