class ImageTag extends BaseImageTag

Generates an HTML <img> tag with the src attribute set to the transformation URL, optional srcset and other specified attributes.

For more information, see the PHP SDK guide.

Methods

serializeAttributes(array $attributes = [])

Serializes the tag attributes.

Details

string serializeAttributes(array $attributes = [])

Serializes the tag attributes.

Parameters

Name Type Description
$attributes array Optional. Additional attributes to add without affecting the tag state.

Return Value

string

Constants

NAME

IS_VOID

BLANK

RESPONSIVE_CLASS

HI_DPI_CLASS