function blazy_preprocess_field in Blazy 7
Same name and namespace in other branches
- 8.2 blazy.module \blazy_preprocess_field()
- 8 blazy.module \blazy_preprocess_field()
Implements hook_preprocess_field().
File
- ./
blazy.runtime.inc, line 200 - Provides basic Blazy integration for lazy loading and multi-serving images.
Code
function blazy_preprocess_field(array &$variables) {
if (isset($variables['element']['#blazy'])) {
Blazy::containerAttributes($variables, $variables['element']['#blazy']);
}
}