function seven_preprocess_media_library_item__widget in Drupal 10
Same name and namespace in other branches
- 8 core/themes/seven/seven.theme \seven_preprocess_media_library_item__widget()
- 9 core/themes/seven/seven.theme \seven_preprocess_media_library_item__widget()
Implements hook_preprocess_media_library_item__widget().
This targets each media item selected in an entity reference field.
File
- core/
themes/ seven/ seven.theme, line 309 - Functions to support theming in the Seven theme.
Code
function seven_preprocess_media_library_item__widget(array &$variables) {
$variables['content']['remove_button']['#attributes']['class'][] = 'media-library-item__remove';
}