public function getSrcsetAttributeValue()
    {
        $srcset = [];
        foreach ($this->versions as $id) {
            $srcset[] = sprintf('%s %sw', $id->getUrl(), $id->getWidth());
        }
        return join(', ', $srcset);
    }
public function getSrcsetAttributeValue()
    {
        $srcset = [];
        foreach ($this->versions as $id) {
            $srcset[] = sprintf('%s %sw', $id->getUrl(), $id->getWidth());
        }
        return join(', ', $srcset);
    }
public function getSrcsetAttributeValue ( ) { $ srcset = [ ] ; foreach ( $ this -> versions as $ id ) { $ srcset [ ] = sprintf ( '%s %sw' , $ id -> getUrl ( ) , $ id -> getWidth ( ) ) ; } return join ( ', ' , $ srcset ) ; }
Get the value for the "srcset" HTML attribute

@return string
Get the value for the srcset HTML attribute