src/Sulu/Bundle/ResourceBundle/Controller/FilterController.php
public function getAction(Request $request, $id)
    {
        $locale = $this->getRequestParameter($request, 'locale', true);
        $view = $this->responseGetById(
            $id,
            function($id) use ($locale) {
                return $this->getManager()->findByIdAndLocale($id, $locale);
            }
        );

        return $this->handleView($view);
    }
public function getAction(Request $request, $id)
    {
        $locale = $this->getRequestParameter($request, 'locale', true);
        $view = $this->responseGetById(
            $id,
            function($id) use ($locale) {
                return $this->getManager()->findByIdAndLocale($id, $locale);
            }
        );

        return $this->handleView($view);
    }
public function getAction ( Request $ request , $ id ) { $ locale = $ this -> getRequestParameter ( $ request , 'locale' , true ) ; $ view = $ this -> responseGetById ( $ id , function ( $ id ) use ( $ locale ) { return $ this -> getManager ( ) -> findByIdAndLocale ( $ id , $ locale ) ; } ) ; return $ this -> handleView ( $ view ) ; }
Retrieves a filter by id.

@param Request $request
@param $id

@return \Symfony\Component\HttpFoundation\Response
Retrieves a filter by id .