You are here

public function Token::__construct in Doubleclick for Publishers (DFP) 8

Token constructor.

Parameters

\Drupal\Core\Utility\Token $core_token: Drupal core's token service.

\Drupal\Core\Routing\RouteMatchInterface $route_match: The route match service.

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

File

src/Token.php, line 45
Contains \Drupal\dfp\Token.

Class

Token
A DFP token service to wrap core's service.

Namespace

Drupal\dfp

Code

public function __construct(CoreToken $core_token, RouteMatchInterface $route_match, AccountInterface $account) {
  $this->coreToken = $core_token;
  $this->routeMatch = $route_match;
  $this->account = $account;
}