function toolbar_test_preprocess_menu
Same name in other branches
- 9 core/modules/toolbar/tests/modules/toolbar_test/toolbar_test.module \toolbar_test_preprocess_menu()
- 10 core/modules/toolbar/tests/modules/toolbar_test/toolbar_test.module \toolbar_test_preprocess_menu()
Implements hook_preprocess_HOOK().
File
-
core/
modules/ toolbar/ tests/ modules/ toolbar_test/ toolbar_test.module, line 60
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.