Sets the image. The function DOES NOT handle the url()-ing.
public setImage ( string $source = '', string $url = '', string $cssClass = '', string $alt = '' ) : MediaItemModule | ||
$source | string | The image source url. The function DOES NOT handle the url()-ing. |
$url | string | The image anchor link, if the image is an anchor. The function DOES NOT handle the url()-ing. |
$cssClass | string | The CSS class for the image. |
$alt | string | The image alt. |
return | MediaItemModule | $this |