You are here

function blazy_preprocess_file_video in Blazy 8.2

Overrides variables for file-video.html.twig templates.

File

./blazy.module, line 58
Provides basic Blazy integration for lazy loading and multi-serving images.

Code

function blazy_preprocess_file_video(&$variables) {
  if (isset($variables['attributes']['data-b-lazy'])) {
    Blazy::preprocessFileVideo($variables);
  }
}