function blazy_preprocess_responsive_image in Blazy 8.2
Same name and namespace in other branches
- 8 blazy.module \blazy_preprocess_responsive_image()
Overrides variables for responsive-image.html.twig templates.
File
- ./
blazy.module, line 49 - Provides basic Blazy integration for lazy loading and multi-serving images.
Code
function blazy_preprocess_responsive_image(&$variables) {
if (isset($variables['attributes']['data-b-lazy'])) {
Blazy::preprocessResponsiveImage($variables);
}
}