You are here

public function ToolbarLinkBuilder::__construct in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/user/src/ToolbarLinkBuilder.php \Drupal\user\ToolbarLinkBuilder::__construct()
  2. 10 core/modules/user/src/ToolbarLinkBuilder.php \Drupal\user\ToolbarLinkBuilder::__construct()

ToolbarHandler constructor.

Parameters

\Drupal\Core\Session\AccountProxyInterface $account: The current user.

File

core/modules/user/src/ToolbarLinkBuilder.php, line 30

Class

ToolbarLinkBuilder
ToolbarLinkBuilder fills out the placeholders generated in user_toolbar().

Namespace

Drupal\user

Code

public function __construct(AccountProxyInterface $account) {
  $this->account = $account;
}