function bartik_preprocess_menu in Drupal 8
Same name and namespace in other branches
- 9 core/themes/bartik/bartik.theme \bartik_preprocess_menu()
- 10 core/themes/bartik/bartik.theme \bartik_preprocess_menu()
Implements hook_preprocess_HOOK() for menu.html.twig.
File
- core/
themes/ bartik/ bartik.theme, line 101 - Functions to support theming in the Bartik theme.
Code
function bartik_preprocess_menu(&$variables) {
$variables['attributes']['class'][] = 'clearfix';
}