function toolbar_test_preprocess_menu
Implements hook_preprocess_HOOK().
File
- 
              core/
modules/ toolbar/ tests/ modules/ toolbar_test/ toolbar_test.module, line 58  
Code
function toolbar_test_preprocess_menu(&$variables) {
  // All the standard hook_theme variables should be populated when the
  // Toolbar module is rendering a menu.
  foreach ([
    'menu_name',
    'items',
    'attributes',
  ] as $variable) {
    $variables[$variable];
  }
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.