function seven_preprocess_media_library_item__small in Drupal 8
Same name and namespace in other branches
- 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 308 - 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';
}