BoilerplateImageExtension::SrcSet
Add the "srcset" and "sizes" HTML attributes to the img tag.
Sets a 2x DPI image in mobile, and the full size image in tablet/desktop
Signature
public function SrcSet([integer
$desktop_vw = 100,
[integer
$mobile_vw = 100]] )
Parameters
$desktop_vw
— integer$mobile_vw
— integer
Returns
- HTMLText