Commit 03949b9c authored by stBorchert's avatar stBorchert Committed by borisson_

Issue #2945282 by stBorchert: FacetBlock::build() returns wrong type if empty...

Issue #2945282 by stBorchert: FacetBlock::build() returns wrong type if empty leading to fatal error
parent 3fac0f76
......@@ -80,7 +80,7 @@ class FacetBlock extends BlockBase implements ContainerFactoryPluginInterface {
// No need to build the facet if it does not need to be visible.
if ($facet->getOnlyVisibleWhenFacetSourceIsVisible() && !$facet->getFacetSource()->isRenderedInCurrentRequest()) {
return;
return [];
}
// Let the facet_manager build the facets.
......
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