function UserToolbarLinkBuilder::__construct
Same name and namespace in other branches
- 11.x core/modules/toolbar/src/UserToolbarLinkBuilder.php \Drupal\toolbar\UserToolbarLinkBuilder::__construct()
Constructs a UserToolbarLinkBuilder object.
Parameters
\Drupal\Core\Session\AccountProxyInterface $account: The current user.
File
-
core/
modules/ toolbar/ src/ UserToolbarLinkBuilder.php, line 30
Class
- UserToolbarLinkBuilder
- Fills out the placeholders generated in ToolbarHooks::userToolbar().
Namespace
Drupal\toolbarCode
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.