src/Templating/Helper/MediaHelper.php
public function media($media, $format, $options = [])
    {
        if (!$media) {
            return '';
        }

        $provider = $this->getProvider($media);

        $format = $provider->getFormatName($media, $format);

        $options = $provider->getHelperProperties($media, $format, $options);

        return $this->templating->render($provider->getTemplate('helper_view'), [
             'media' => $media,
             'format' => $format,
             'options' => $options,
        ]);
    }
public function media($media, $format, $options = [])
    {
        if (!$media) {
            return '';
        }

        $provider = $this->getProvider($media);

        $format = $provider->getFormatName($media, $format);

        $options = $provider->getHelperProperties($media, $format, $options);

        return $this->templating->render($provider->getTemplate('helper_view'), [
             'media' => $media,
             'format' => $format,
             'options' => $options,
        ]);
    }
public function media ( $ media , $ format , $ options = [ ] ) { if ( ! $ media ) { return '' ; } $ provider = $ this -> getProvider ( $ media ) ; $ format = $ provider -> getFormatName ( $ media , $ format ) ; $ options = $ provider -> getHelperProperties ( $ media , $ format , $ options ) ; return $ this -> templating -> render ( $ provider -> getTemplate ( 'helper_view' ) , [ 'media' => $ media , 'format' => $ format , 'options' => $ options , ] ) ; }
Returns the provider view for the provided media.

@param MediaInterface $media
@param string         $format
@param array          $options

@return string
Returns the provider view for the provided media .