Block/MediaBlockService.php
protected function getFormatChoices($context = 'prestacms')
    {
        $formatChoices = array();

        $formats = $this->getMediaPool()->getFormatNamesByContext($context);

        foreach ($formats as $code => $format) {
            $formatChoices[$code] = $this->trans('media.format.' . $code);
        }

        return $formatChoices;
    }
protected function getFormatChoices($context = 'prestacms')
    {
        $formatChoices = array();

        $formats = $this->getMediaPool()->getFormatNamesByContext($context);

        foreach ($formats as $code => $format) {
            $formatChoices[$code] = $this->trans('media.format.' . $code);
        }

        return $formatChoices;
    }
protected function getFormatChoices ( $ context = 'prestacms' ) { $ formatChoices = array ( ) ; $ formats = $ this -> getMediaPool ( ) -> getFormatNamesByContext ( $ context ) ; foreach ( $ formats as $ code => $ format ) { $ formatChoices [ $ code ] = $ this -> trans ( 'media.format.' . $ code ) ; } return $ formatChoices ; }
Returns available formats

@param string $context
@return array
Returns available formats