Skip to content
Snippets Groups Projects
Commit 03949b9c authored by Stefan Borchert's avatar Stefan Borchert Committed by Joris Vercammen
Browse files

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