function media_library_preprocess_views_view__media_library

Same name and namespace in other branches
  1. 8.9.x core/modules/media_library/media_library.module \media_library_preprocess_views_view__media_library()
  2. 10 core/modules/media_library/media_library.module \media_library_preprocess_views_view__media_library()
  3. 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 246

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.