You are here

function bartik_preprocess_menu in Drupal 10

Same name and namespace in other branches
  1. 8 core/themes/bartik/bartik.theme \bartik_preprocess_menu()
  2. 9 core/themes/bartik/bartik.theme \bartik_preprocess_menu()

Implements hook_preprocess_HOOK() for menu.html.twig.

File

core/themes/bartik/bartik.theme, line 103
Functions to support theming in the Bartik theme.

Code

function bartik_preprocess_menu(&$variables) {
  $variables['attributes']['class'][] = 'clearfix';
}