class Image (View source)

Properties

protected bool|null $usePictureTag
protected Picture|Image $tag
protected Theme $theme

Methods

__construct(File $f = null, bool|null $usePictureTag = null)

No description

Picture|Image
getTag()

Returns an object that represents the HTML tag.

loadPictureSettingsFromTheme()

Load picture settings from the theme.

Details

__construct(File $f = null, bool|null $usePictureTag = null)

No description

Parameters

File $f
bool|null $usePictureTag

Picture|Image getTag()

Returns an object that represents the HTML tag.

protected loadPictureSettingsFromTheme()

Load picture settings from the theme.

If the theme uses responsive image maps, the getTag method will return a Picture object.