Skip to content

Instantly share code, notes, and snippets.

@langelhc
Created April 24, 2020 17:31
Show Gist options
  • Save langelhc/22afca93212a6df59077090d581c511a to your computer and use it in GitHub Desktop.
Save langelhc/22afca93212a6df59077090d581c511a to your computer and use it in GitHub Desktop.
Drupal render facet block inside views twig file
{% set facet_config = {
'show_title': false,
'exclude_empty_facets': false,
'facets_to_include': {
'facet_block:myfacet' : 'facet_block:myfacet'
}
}
%}
{{ drupal_block('facets_block', facet_config) }}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment