function ToolbarLinkBuilder::__construct
Same name and namespace in other branches
- 8.9.x core/modules/user/src/ToolbarLinkBuilder.php \Drupal\user\ToolbarLinkBuilder::__construct()
- 10 core/modules/user/src/ToolbarLinkBuilder.php \Drupal\user\ToolbarLinkBuilder::__construct()
- 11.x 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 <a href="/api/drupal/core%21modules%21user%21user.module/function/user_toolbar/9" title="Implements hook_toolbar()." class="local">user_toolbar</a>().
Namespace
Drupal\userCode
public function __construct(AccountProxyInterface $account) {
$this->account = $account;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.