You are here

function claro_preprocess_menu_local_task__views_ui in Drupal 9

Same name and namespace in other branches
  1. 8 core/themes/claro/claro.theme \claro_preprocess_menu_local_task__views_ui()

Implements hook_preprocess_HOOK() for menu-local-task Views UI templates.

File

core/themes/claro/claro.theme, line 95
Functions to support theming in the Claro theme.

Code

function claro_preprocess_menu_local_task__views_ui(&$variables) {

  // Remove 'tabs__link' without adding a new class because it couldn't be used
  // reliably.
  // @see https://www.drupal.org/node/3051605
  $link_class_index = array_search('tabs__link', $variables['link']['#options']['attributes']['class']);
  if ($link_class_index !== FALSE) {
    unset($variables['link']['#options']['attributes']['class'][$link_class_index]);
  }
}