src/Sulu/Bundle/AudienceTargetingBundle/Controller/TargetGroupController.php
public function getAction($id)
    {
        $findCallback = function($id) {
            $targetGroup = $this->getTargetGroupRepository()->find($id);

            return $targetGroup;
        };

        $view = $this->responseGetById($id, $findCallback);

        return $this->handleView($view);
    }
public function getAction($id)
    {
        $findCallback = function($id) {
            $targetGroup = $this->getTargetGroupRepository()->find($id);

            return $targetGroup;
        };

        $view = $this->responseGetById($id, $findCallback);

        return $this->handleView($view);
    }
public function getAction ( $ id ) { $ findCallback = function ( $ id ) { $ targetGroup = $ this -> getTargetGroupRepository ( ) -> find ( $ id ) ; return $ targetGroup ; } ; $ view = $ this -> responseGetById ( $ id , $ findCallback ) ; return $ this -> handleView ( $ view ) ; }
Returns a target group by id.

@param int $id

@return Response
Returns a target group by id .