Skip to content

Kirby 5.2.0

$image->__toString()

Returns the <img> tag for the image object

$image->__toString(): string

Return type

string

This method modifies the existing $image object it is applied to and returns it again.

Parent class

Kirby\Image\Image