function media_library_theme_reset_preprocess_links__media_library_menu in Media Library Theme Reset 8
Implements hook_preprocess_links__media_library_menu().
This targets the menu of available media types in the media library's modal dialog.
@todo Do this in the relevant template once https://www.drupal.org/project/drupal/issues/3088856 is resolved.
File
- ./
media_library_theme_reset.module, line 122 - Contains media_library_theme_reset.module.
Code
function media_library_theme_reset_preprocess_links__media_library_menu(array &$variables) {
foreach ($variables['links'] as &$link) {
$link['link']['#options']['attributes']['class'][] = 'media-library-menu__link';
}
}