src/Sulu/Bundle/ResourceBundle/Resource/FilterManager.php
public function findFiltersForUserAndContext($context, $userId, $locale)
    {
        $filters = $this->filterRepository->findByUserAndContextAndLocale($locale, $context, $userId);
        array_walk(
            $filters,
            function(&$filter) use ($locale) {
                $filter = new Filter($filter, $locale);
            }
        );

        return $filters;
    }
public function findFiltersForUserAndContext($context, $userId, $locale)
    {
        $filters = $this->filterRepository->findByUserAndContextAndLocale($locale, $context, $userId);
        array_walk(
            $filters,
            function(&$filter) use ($locale) {
                $filter = new Filter($filter, $locale);
            }
        );

        return $filters;
    }
public function findFiltersForUserAndContext ( $ context , $ userId , $ locale ) { $ filters = $ this -> filterRepository -> findByUserAndContextAndLocale ( $ locale , $ context , $ userId ) ; array_walk ( $ filters , function ( & $ filter ) use ( $ locale ) { $ filter = new Filter ( $ filter , $ locale ) ; } ) ; return $ filters ; }
Finds all filters filtered by context and user and
for the given locale.

@param string $context
@param $userId
@param string $locale

@return \Sulu\Bundle\ResourceBundle\Api\Filter[]
Finds all filters filtered by context and user and for the given locale .