diff --git a/core/profiles/demo_umami/themes/umami/umami.theme b/core/profiles/demo_umami/themes/umami/umami.theme index 2cdfa37be1..97f10d7846 100644 --- a/core/profiles/demo_umami/themes/umami/umami.theme +++ b/core/profiles/demo_umami/themes/umami/umami.theme @@ -119,16 +119,7 @@ function umami_form_alter(array &$form, FormStateInterface $form_state, $form_id $form_object = $form_state->getFormObject(); if ($form_object instanceof ViewsForm && strpos($form_object->getBaseFormId(), 'views_form_media_library') === 0) { - // The conditional below exists because the media-library-views-form class - // is currently added by Classy, but Umami will eventually not use Classy as - // a base theme. - // @todo remove conditional, keep class addition in - // https://drupal.org/node/3110137 - // @see https://www.drupal.org/node/3109287 - // @see classy_form_alter() - if (!isset($form['#attributes']['class']) || !in_array('media-library-views-form', $form['#attributes']['class'])) { - $form['#attributes']['class'][] = 'media-library-views-form'; - } + $form['#attributes']['class'][] = 'media-library-views-form'; } } diff --git a/core/themes/claro/claro.theme b/core/themes/claro/claro.theme index 798c93928e..4b35d684a8 100644 --- a/core/themes/claro/claro.theme +++ b/core/themes/claro/claro.theme @@ -1503,16 +1503,7 @@ function claro_preprocess_links__media_library_menu(array &$variables) { foreach ($variables['links'] as &$link) { // Add a class to the Media Library menu items. $link['attributes']->addClass('media-library-menu__item'); - - // This conditional exists because the media-library-menu__link class is - // currently added by Classy, but Claro will eventually not use Classy as a - // base theme. - // @todo remove conditional, keep class addition in - // https://drupal.org/node/3110137 - // @see classy_preprocess_links__media_library_menu() - if (!isset($link['link']['#options']['attributes']['class']) || !in_array('media-library-menu__link', $link['link']['#options']['attributes']['class'])) { - $link['link']['#options']['attributes']['class'][] = 'media-library-menu__link'; - } + $link['link']['#options']['attributes']['class'][] = 'media-library-menu__link'; } }