You are here

public function ForwardLinkBuilder::__construct in Forward 8

Same name and namespace in other branches
  1. 8.3 src/ForwardLinkBuilder.php \Drupal\forward\ForwardLinkBuilder::__construct()
  2. 8.2 src/ForwardLinkBuilder.php \Drupal\forward\ForwardLinkBuilder::__construct()

Constructs a ForwardLinkBuilder object.

Parameters

\Drupal\Core\Utility\Token: The token service.

\Drupal\Core\Render\RendererInterface: The render service.

\Drupal\Core\Utility\LinkGenerator: The link generation service.

File

src/ForwardLinkBuilder.php, line 48

Class

ForwardLinkBuilder
Defines a class for building markup for a Forward link on an entity.

Namespace

Drupal\forward

Code

public function __construct(Token $token_service, RendererInterface $renderer, LinkGenerator $link_generator) {
  $this->tokenService = $token_service;
  $this->renderer = $renderer;
  $this->linkGenerator = $link_generator;
}