Skip to content
Snippets Groups Projects
Commit d85475c1 authored by Andreas De Rijcke's avatar Andreas De Rijcke Committed by Nick Veenhof
Browse files

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
No related branches found
No related tags found
No related merge requests found
......@@ -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',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment