PHP Class FluidTYPO3\Vhs\ViewHelpers\Media\ImageViewHelper

## rendering responsive Images variants You can use the srcset argument to generate several differently sized versions of this image that will be added as a srcset argument to the img tag. enter a list of widths in the srcset to genereate copies of the same crop + ratio but in the specified widths. Put the width at the start that you want to use as a fallback to be shown when no srcset functionality is supported. ### Example ### Browser Support To have the widest Browser-Support you should consider using a polyfill like: http://scottjehl.github.io/picturefill/
Inheritance: extends FluidTYPO3\Vhs\ViewHelpers\Media\Image\AbstractImageViewHelper, use trait FluidTYPO3\Vhs\Traits\SourceSetViewHelperTrait
Datei anzeigen Open project: fluidtypo3/vhs Class Usage Examples

Protected Properties

Property Type Description
$tagName string name of the tag to be created by this view helper

Public Methods

Method Description
initializeArguments ( ) : void Initialize arguments.
render ( ) : string Render method
renderTag ( ) : string

Method Details

initializeArguments() public method

Initialize arguments.
public initializeArguments ( ) : void
return void

render() public method

Render method
public render ( ) : string
return string

renderTag() public method

public renderTag ( ) : string
return string

Property Details

$tagName protected_oe property

name of the tag to be created by this view helper
protected string $tagName
return string