You are here

public function WidgetPluginBase::supportsFacet in Facets 8

Checks if the facet is supported by this processor.

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

Parameters

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

Return value

bool Returns true when allowed, false otherwise.

Overrides WidgetPluginInterface::supportsFacet

See also

\Drupal\facets\Processor\ProcessorInterface::supportsFacet

1 method overrides WidgetPluginBase::supportsFacet()
CustomWidget::supportsFacet in tests/facets_custom_widget/src/Plugin/facets/widget/CustomWidget.php
Checks if the facet is supported by this processor.

File

src/Widget/WidgetPluginBase.php, line 265

Class

WidgetPluginBase
A base class for widgets that implements most of the boilerplate.

Namespace

Drupal\facets\Widget

Code

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