function 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\Hook

Code

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.