function opigno_course_preprocess_views_view_field in Opigno course 8
Same name and namespace in other branches
- 3.x 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();
}
}