CoolCMS API

AssetSrcset.php

Table of Contents

Classes

AssetSrcset
Builds `srcset` from image variants. Pure logic without disk or entity access, so it is tested standalone. Variant files come from `Asset::getVariantFiles()`, the set of existing folders is supplied by the caller ({@see \App\UI\Front\System\Components\AssetRendererComponent\AssetRenderer}).
On this page

Search results