function seven_preprocess_media_library_item__small

Same name and namespace in other branches
  1. 8.9.x core/themes/seven/seven.theme \seven_preprocess_media_library_item__small()

Implements hook_preprocess_media_library_item__small().

This targets each pre-selected media item selected when adding new media in the modal media library dialog.

File

core/themes/seven/seven.theme, line 319

Code

function seven_preprocess_media_library_item__small(array &$variables) {
    $variables['content']['select']['#attributes']['class'][] = 'media-library-item__click-to-select-checkbox';
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.