Media/BBcode/AbstractMediaCodeDefinition.php
protected function getAttribute(BBcodeElementNodeInterface $el, $attribute)
    {
        $attributes = $el->getAttribute();

        if (isset($attributes[self::TAG_NAME])) {
            $attributes = json_decode($attributes[self::TAG_NAME]);
            if (isset($attributes->$attribute)) {

                return $attributes->$attribute;
            }
        }

        return '';
    }
protected function getAttribute(BBcodeElementNodeInterface $el, $attribute)
    {
        $attributes = $el->getAttribute();

        if (isset($attributes[self::TAG_NAME])) {
            $attributes = json_decode($attributes[self::TAG_NAME]);
            if (isset($attributes->$attribute)) {

                return $attributes->$attribute;
            }
        }

        return '';
    }
protected function getAttribute ( BBcodeElementNodeInterface $ el , $ attribute ) { $ attributes = $ el -> getAttribute ( ) ; if ( isset ( $ attributes [ self :: TAG_NAME ] ) ) { $ attributes = json_decode ( $ attributes [ self :: TAG_NAME ] ) ; if ( isset ( $ attributes -> $ attribute ) ) { return $ attributes -> $ attribute ; } } return '' ; }
Get requested media legend

@param BBcodeElementNodeInterface $el
@param string                     $attribute

@return string
Get requested media legend