LinkGeneratorTrait::setLinkGenerator

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;
}
doc_Drupal
2016-10-29 09:23:19
Comments
Leave a Comment

Please login to continue.