thrownewInvalidProcessorException(newFormattableMarkup("The processor @processor has a pre_query definition but doesn't implement the required PreQueryProcessorInterface interface",['@processor'=>$processor_configuration['processor_id']]));
thrownewInvalidProcessorException(newFormattableMarkup("The processor @processor has a pre_query definition but doesn't implement the required PreQueryProcessorInterface interface",['@processor'=>$processor_configuration['processor_id']]));
}
$pre_query_processor->preQuery($facet);
}
}
}
}
/**
* Build a facet and returns it's render array.
* Builds a facet and returns it as a renderable array.
*
* This method delegates to the relevant plugins to render a facet, it calls
* out to a widget plugin to do the actual rendering when results are found.
...
...
@@ -223,7 +248,8 @@ class DefaultFacetManager {
* Before doing any rendering, the processors that implement the
* BuildProcessorInterface enabled on this facet will run.
*
* @param \Drupal\facetapi\FacetInterface $facet
* @param \Drupal\facets\FacetInterface $facet
* The facet we should build.
*
* @return array
* Facet render arrays.
...
...
@@ -236,7 +262,7 @@ class DefaultFacetManager {
$facet=$this->facets[$facet->id()];
// @TODO: inject the searcher id on create of the FacetManager.
thrownewInvalidProcessorException(newFormattableMarkup("The processor @processor has a build definition but doesn't implement the required BuildProcessorInterface interface",['@processor'=>$processor['processor_id']]));
thrownewInvalidProcessorException(newFormattableMarkup("The processor @processor has a build definition but doesn't implement the required BuildProcessorInterface interface",['@processor'=>$processor['processor_id']]));