You are here

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

Overrides PreQueryProcessorInterface::preQuery

File

src/Plugin/facets/processor/UrlProcessorHandler.php, line 81

Class

UrlProcessorHandler
The URL processor handler triggers the actual url processor.

Namespace

Drupal\facets\Plugin\facets\processor

Code

public function preQuery(FacetInterface $facet) {
  $this->processor
    ->setActiveItems($facet);
}