function ToolbarHooks::__construct
Same name and namespace in other branches
- 11.x core/modules/toolbar/src/Hook/ToolbarHooks.php \Drupal\toolbar\Hook\ToolbarHooks::__construct()
ToolbarHooks constructor.
Parameters
\Drupal\Core\Extension\ModuleHandlerInterface $moduleHandler: The module handler.
\Drupal\Core\Session\AccountInterface $currentUser: The current user.
File
-
core/
modules/ toolbar/ src/ Hook/ ToolbarHooks.php, line 28
Class
- ToolbarHooks
- Hook implementations for toolbar.
Namespace
Drupal\toolbar\HookCode
public function __construct(protected ModuleHandlerInterface $moduleHandler, protected AccountInterface $currentUser) {
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.