You are here

PreQueryProcessorInterface.php in Facets 8

File

src/Processor/PreQueryProcessorInterface.php
View source
<?php

namespace Drupal\facets\Processor;

use Drupal\facets\FacetInterface;

/**
 * Processor runs before the query is executed.
 */
interface PreQueryProcessorInterface extends ProcessorInterface {

  /**
   * 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?
   *
   * @param \Drupal\facets\FacetInterface $facet
   *   The facet being changed.
   */
  public function preQuery(FacetInterface $facet);

}

Interfaces

Namesort descending Description
PreQueryProcessorInterface Processor runs before the query is executed.