function bartik_preprocess_menu

Same name in other branches
  1. 8.9.x core/themes/bartik/bartik.theme \bartik_preprocess_menu()

Implements hook_preprocess_HOOK() for menu.html.twig.

File

core/themes/bartik/bartik.theme, line 103

Code

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.