src/Sulu/Bundle/MediaBundle/Controller/MediaFormatController.php
public function cgetAction($id, Request $request)
    {
        $formatOptions = $this->getFormatOptionsManager()->getAll($id);

        return $this->handleView($this->view(count($formatOptions) > 0 ? $formatOptions : new \stdClass()));
    }
public function cgetAction($id, Request $request)
    {
        $formatOptions = $this->getFormatOptionsManager()->getAll($id);

        return $this->handleView($this->view(count($formatOptions) > 0 ? $formatOptions : new \stdClass()));
    }
public function cgetAction ( $ id , Request $ request ) { $ formatOptions = $ this -> getFormatOptionsManager ( ) -> getAll ( $ id ) ; return $ this -> handleView ( $ this -> view ( count ( $ formatOptions ) > 0 ? $ formatOptions : new \ stdClass ( ) ) ) ; }
Returns all format resources.

@param $id
@param Request $request

@return Response
Returns all format resources .