function claro_preprocess_media_library_item__small

Same name in other branches
  1. 9 core/themes/claro/claro.theme \claro_preprocess_media_library_item__small()
  2. 8.9.x core/themes/claro/claro.theme \claro_preprocess_media_library_item__small()
  3. 10 core/themes/claro/claro.theme \claro_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/claro/claro.theme, line 1583

Code

function claro_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.