public function ForwardLinkGenerator::__construct in Forward 4.x
Same name and namespace in other branches
- 4.0.x src/Services/ForwardLinkGenerator.php \Drupal\forward\Services\ForwardLinkGenerator::__construct()
Constructs a ForwardLinkBuilder object.
Parameters
\Drupal\Core\Utility\LinkGenerator $link_generator: The core link generation service.
\Drupal\Core\Render\RendererInterface $renderer: The render service.
\Drupal\Core\Utility\Token $token_service: The token service.
File
- src/
Services/ ForwardLinkGenerator.php, line 48
Class
- ForwardLinkGenerator
- Defines a class for generating a Forward link on an entity.
Namespace
Drupal\forward\ServicesCode
public function __construct(LinkGenerator $link_generator, RendererInterface $renderer, Token $token_service) {
$this->linkGenerator = $link_generator;
$this->renderer = $renderer;
$this->tokenService = $token_service;
}