Fixed: [filterOrder] refactor active filter helper to a dedicated class and fix loading of multiple entity choices

This commit is contained in:
2023-07-11 14:17:02 +02:00
parent bf93c1ddb2
commit 88114e3ba6
6 changed files with 91 additions and 74 deletions

View File

@@ -24,6 +24,7 @@ class Templating extends AbstractExtension
{
public function __construct(
private readonly RequestStack $requestStack,
private readonly FilterOrderGetActiveFilterHelper $filterOrderGetActiveFilterHelper,
) {
}
@@ -68,6 +69,7 @@ class Templating extends AbstractExtension
return $environment->render($template, [
'helper' => $helper,
'active' => $this->filterOrderGetActiveFilterHelper->getActiveFilters($helper),
'form' => $helper->buildForm()->createView(),
'options' => $options,
'otherParameters' => $otherParameters,