facets-8.x-1.x-dev/src/Processor/BuildProcessorInterface.php
src/Processor/BuildProcessorInterface.php
<?php
namespace Drupal\facets\Processor;
use Drupal\facets\FacetInterface;
/**
* Processor runs before the renderable array is created.
*/
interface BuildProcessorInterface extends ProcessorInterface {
/**
* Runs before the renderable array is created.
*
* @param \Drupal\facets\FacetInterface $facet
* The facet being changed.
* @param \Drupal\facets\Result\ResultInterface[] $results
* The results being changed.
*
* @return \Drupal\facets\Result\ResultInterface[]
* The changed results.
*/
public function build(FacetInterface $facet, array $results);
}
