function seven_preprocess_media_library_item__small in Drupal 10
Same name and namespace in other branches
- 8 core/themes/seven/seven.theme \seven_preprocess_media_library_item__small()
- 9 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 - Functions to support theming in the Seven theme.
Code
function seven_preprocess_media_library_item__small(array &$variables) {
$variables['content']['select']['#attributes']['class'][] = 'media-library-item__click-to-select-checkbox';
}