Commit d85475c1 authored by andreasderijcke's avatar andreasderijcke Committed by Nick_vh

Issue #2978534 by andreasderijcke: ShowCountProcessor: array_unshift() expects...

Issue #2978534 by andreasderijcke: ShowCountProcessor: array_unshift() expects parameter 1 to be array, null given
parent d3016d2c
......@@ -24,6 +24,10 @@ class ShowCountProcessor extends ProcessorPluginBase implements BuildProcessorIn
* {@inheritdoc}
*/
public function build(FacetsSummaryInterface $facets_summary, array $build, array $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