class ToolbarTestThemeHooks
Hook implementations for toolbar_test.
Hierarchy
- class \Drupal\toolbar_test\Hook\ToolbarTestThemeHooks
Expanded class hierarchy of ToolbarTestThemeHooks
File
-
core/
modules/ toolbar/ tests/ modules/ toolbar_test/ src/ Hook/ ToolbarTestThemeHooks.php, line 12
Namespace
Drupal\toolbar_test\HookView source
class ToolbarTestThemeHooks {
/**
* Implements hook_preprocess_HOOK().
*/
public function preprocessMenu(&$variables) : void {
// 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];
}
}
}
Members
Title Sort descending | Modifiers | Object type | Summary |
---|---|---|---|
ToolbarTestThemeHooks::preprocessMenu | public | function | Implements hook_preprocess_HOOK(). |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.