Loading core/modules/toolbar/tests/modules/toolbar_test/toolbar_test.module +11 −0 Original line number Diff line number Diff line Loading @@ -48,3 +48,14 @@ function toolbar_test_toolbar() { return $items; } /** * Implements hook_preprocess_HOOK(). */ 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]; } } core/modules/toolbar/toolbar.module +1 −1 Original line number Diff line number Diff line Loading @@ -41,7 +41,7 @@ function toolbar_theme($existing, $type, $theme, $path) { ]; $items['menu__toolbar'] = [ 'base hook' => 'menu', 'variables' => ['items' => [], 'attributes' => []], 'variables' => ['menu_name' => NULL, 'items' => [], 'attributes' => []], ]; return $items; Loading Loading
core/modules/toolbar/tests/modules/toolbar_test/toolbar_test.module +11 −0 Original line number Diff line number Diff line Loading @@ -48,3 +48,14 @@ function toolbar_test_toolbar() { return $items; } /** * Implements hook_preprocess_HOOK(). */ 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]; } }
core/modules/toolbar/toolbar.module +1 −1 Original line number Diff line number Diff line Loading @@ -41,7 +41,7 @@ function toolbar_theme($existing, $type, $theme, $path) { ]; $items['menu__toolbar'] = [ 'base hook' => 'menu', 'variables' => ['items' => [], 'attributes' => []], 'variables' => ['menu_name' => NULL, 'items' => [], 'attributes' => []], ]; return $items; Loading