Commit ddd9348c authored by Erik Frèrejean's avatar Erik Frèrejean Committed by StryKaizer

Issue #2951763 by Erik Frèrejean: Show count processor should always build when enabled

parent fed81315
......@@ -24,11 +24,6 @@ class ShowCountProcessor extends ProcessorPluginBase implements BuildProcessorIn
* {@inheritdoc}
*/
public function build(FacetsSummaryInterface $facets_summary, array $build, array $facets) {
// Do nothing if there are no selected facets.
if (!isset($build['#items'])) {
return $build;
}
$count = $facets_summary->getFacetSource()->getCount();
$build_count = [
'#theme' => 'facets_summary_count',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment