You are here

public function PreQueryProcessorInterface::preQuery in Facets 8

Runs before the query is executed.

Uses the queryType and the facetSource implementation to make sure the alteration to the query was added before the query is executed in the backend?

Parameters

\Drupal\facets\FacetInterface $facet: The facet being changed.

4 methods override PreQueryProcessorInterface::preQuery()
InvalidQT::preQuery in tests/facets_custom_widget/src/Plugin/facets/processor/InvalidQT.php
Runs before the query is executed.
RangeSliderProcessor::preQuery in modules/facets_range_widget/src/Plugin/facets/processor/RangeSliderProcessor.php
Runs before the query is executed.
TestPreQuery::preQuery in tests/facets_custom_widget/src/Plugin/facets/processor/TestPreQuery.php
Runs before the query is executed.
UrlProcessorHandler::preQuery in src/Plugin/facets/processor/UrlProcessorHandler.php
Runs before the query is executed.

File

src/Processor/PreQueryProcessorInterface.php, line 22

Class

PreQueryProcessorInterface
Processor runs before the query is executed.

Namespace

Drupal\facets\Processor

Code

public function preQuery(FacetInterface $facet);