You are here

public function LoginDestinationToolbarLinkBuilder::__construct in Login Destination 8.2

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

ToolbarHandler constructor.

Parameters

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

\Drupal\Core\Path\CurrentPathStack $current_path: The current path.

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

Overrides ToolbarLinkBuilder::__construct

File

src/LoginDestinationToolbarLinkBuilder.php, line 38

Class

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

Namespace

Drupal\login_destination

Code

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