function media_library_theme_reset_preprocess_fieldset__media_library_widget in Media Library Theme Reset 8
Remove this when https://www.drupal.org/project/drupal/issues/2999549 lands.
See also
\Drupal\media_library\Plugin\Field\FieldWidget\MediaLibraryWidget::formElement()
File
- ./
media_library_theme_reset.module, line 234 - Contains media_library_theme_reset.module.
Code
function media_library_theme_reset_preprocess_fieldset__media_library_widget(array &$variables) {
if (isset($variables['prefix']['weight_toggle'])) {
$variables['prefix']['weight_toggle']['#attributes']['class'][] = 'media-library-widget__toggle-weight';
}
if (isset($variables['suffix']['open_button'])) {
$variables['suffix']['open_button']['#attributes']['class'][] = 'media-library-open-button';
}
}