Image

Type
Class
Namespace
craft\web\twig\variables
Inherits
craft\web\twig\variables\Image
Since
3.0.0

Class Image variable.

View source

# Protected Properties

# path

Type
string, null

View source

# size

Type
array, null

View source

# url

Type
string, null

View source

# Public Methods

Method Description
__construct() Constructor
getHeight() Returns the image's height.
getSize() Returns an array of the width and height of the image.
getUrl() Returns the image's URL.
getWidth() Returns the image's width.

# __construct()

Constructor

View source

Arguments

# getHeight()

Returns the image's height.

View source

Returns

integer

# getSize()

Returns an array of the width and height of the image.

View source

Returns

array

# getUrl()

Returns the image's URL.

View source

Returns

string

# getWidth()

Returns the image's width.

View source

Returns

integer