UrlGeneratorTrait::setUrlGenerator

public UrlGeneratorTrait::setUrlGenerator(UrlGeneratorInterface $generator)

Sets the URL generator service.

Parameters

\Drupal\Core\Routing\UrlGeneratorInterface $generator: The url generator service.

Return value

$this

File

core/lib/Drupal/Core/Routing/UrlGeneratorTrait.php, line 88

Class

UrlGeneratorTrait
Wrapper methods for the Url Generator.

Namespace

Drupal\Core\Routing

Code

public function setUrlGenerator(UrlGeneratorInterface $generator) {
  $this->urlGenerator = $generator;

  return $this;
}
doc_Drupal
2016-10-29 09:51:51
Comments
Leave a Comment

Please login to continue.