You are here

function claro_preprocess_media_library_item__widget in Drupal 8

Same name and namespace in other branches
  1. 9 core/themes/claro/claro.theme \claro_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/claro/claro.theme, line 1338
Functions to support theming in the Claro theme.

Code

function claro_preprocess_media_library_item__widget(array &$variables) {
  $variables['content']['remove_button']['#attributes']['class'][] = 'media-library-item__remove';
}