Code development platform for open source projects from the European Union institutions 🔵 EU Login authentication by SMS has been phased out. To see alternatives please check here

Skip to content

Pass block's attributes to offcanvas pattern for block--facets-form.html.twig

Created by: msnassar

We would like to hide the facets form when all facets are hidden. In order to do that -as a workaround- we preprocess the facets form block and set 'd-none' class when the condition is met. But the class is not added to the block. This is because the block's template doesn't pass the attributes to the offcanvas pattern!

It would be nice to have settings for the facets form to hide the form when all facets are hidden https://www.drupal.org/project/facets_form/issues/3344978. Similar issues: Facets: https://www.drupal.org/project/facets/issues/2984465 Facets block: https://www.drupal.org/project/facets_block/issues/3207373