You are here

function opigno_course_preprocess_views_view_field in Opigno course 3.x

Same name and namespace in other branches
  1. 8 opigno_course.module \opigno_course_preprocess_views_view_field()

Implements hook_views_view_field().

File

./opigno_course.module, line 55
Contains opigno_course.module.

Code

function opigno_course_preprocess_views_view_field(&$variables) {
  if ($variables['view']
    ->id() == 'media_browser_images_png' && $variables['field']->options['id'] == 'name') {
    $variables['bundle'] = $variables['view']->field['bundle']->original_value
      ->jsonSerialize();
  }
}