Media/BBcode/MediaCodeDefinition.php
protected function getFormat(BBcodeElementNodeInterface $el)
    {
        $options = $el->getAttribute();
        $options = json_decode($options['media'], true);

        return is_array($options) && array_key_exists('format', $options) ? $options['format'] : MediaInterface::MEDIA_ORIGINAL;
    }
protected function getFormat(BBcodeElementNodeInterface $el)
    {
        $options = $el->getAttribute();
        $options = json_decode($options['media'], true);

        return is_array($options) && array_key_exists('format', $options) ? $options['format'] : MediaInterface::MEDIA_ORIGINAL;
    }
protected function getFormat ( BBcodeElementNodeInterface $ el ) { $ options = $ el -> getAttribute ( ) ; $ options = json_decode ( $ options [ 'media' ] , true ) ; return is_array ( $ options ) && array_key_exists ( 'format' , $ options ) ? $ options [ 'format' ] : MediaInterface :: MEDIA_ORIGINAL ; }
Get requested media format

@param BBcodeElementNodeInterface $el

@return string
Get requested media format