You are here

function claro_preprocess_media_library_item__small in Drupal 9

Same name and namespace in other branches
  1. 8 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 1409
Functions to support theming in the Claro theme.

Code

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