You are here

function blazy_preprocess_views_view in Blazy 8.2

Implements hook_preprocess_views_view().

File

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

Code

function blazy_preprocess_views_view(array &$variables) {
  if (!empty($variables['css_class']) && strpos($variables['css_class'], 'blazy--') !== FALSE) {
    if ($lightboxes = blazy()
      ->getLightboxes()) {
      BlazyViews::preprocessViewsView($variables, $lightboxes);
    }
  }
}