public LinkGeneratorTrait::setLinkGenerator(LinkGeneratorInterface $generator)
Sets the link generator service.
Parameters
\Drupal\Core\Utility\LinkGeneratorInterface $generator: The link generator service.
Return value
$this
File
- core/lib/Drupal/Core/Routing/LinkGeneratorTrait.php, line 69
Class
- LinkGeneratorTrait
- Wrapper methods for the Link Generator.
Namespace
Drupal\Core\Routing
Code
public function setLinkGenerator(LinkGeneratorInterface $generator) { $this->linkGenerator = $generator; return $this; }
Please login to continue.