You are here

public function LoginDestinationToolbarLinkBuilder::__construct in Login Destination 8

Same name and namespace in other branches
  1. 8.2 src/LoginDestinationToolbarLinkBuilder.php \Drupal\login_destination\LoginDestinationToolbarLinkBuilder::__construct()

ToolbarHandler constructor.

Parameters

\Drupal\user\ToolbarLinkBuilder $inner_service: The decorated service.

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

Overrides ToolbarLinkBuilder::__construct

File

src/LoginDestinationToolbarLinkBuilder.php, line 28

Class

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

Namespace

Drupal\login_destination

Code

public function __construct(ToolbarLinkBuilder $inner_service, AccountProxyInterface $account) {
  $this->innerService = $inner_service;
  parent::__construct($account);
}