function media_library_preprocess_views_view__media_library
Same name in other branches
- 9 core/modules/media_library/media_library.module \media_library_preprocess_views_view__media_library()
- 10 core/modules/media_library/media_library.module \media_library_preprocess_views_view__media_library()
- 11.x core/modules/media_library/media_library.module \media_library_preprocess_views_view__media_library()
Implements hook_preprocess_views_view() for the 'media_library' view.
File
-
core/
modules/ media_library/ media_library.module, line 250
Code
function media_library_preprocess_views_view__media_library(array &$variables) {
$variables['attributes']['data-view-display-id'] = $variables['view']->current_display;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.