- Issue created by @Anybody
- 🇧🇪Belgium RandalV
I'm also experiencing this issue in a new project of ours using Facets 3.0.0-beta4, exactly as described above.
On the view page itself, everything is fine. Anywhere else, all the facets are empty :(
I'll see if I can find anything, haven't had the time yet to debug.
- 🇧🇪Belgium RandalV
I haven't got the time to fully debug this in facets itself, but in my case it was solvable by rendering it in a custom block like below.
I had to render in a custom block anyway because I wanted to add extra items before and after the exposed filters, so this was a quick fix for me./** @var \Drupal\views\Plugin\Block\ViewsExposedFilterBlock $plugin_block */ $plugin_block = $this->blockManager->createInstance('views_exposed_filter_block:events-overview'); // Make sure the facets are populated. $view = $plugin_block->getViewExecutable(); $view->preExecute(); $view->execute(); return [ // ... 'filters' => $plugin_block->build(), // ... ];