TwigExtension::setUrlGenerator

public TwigExtension::setUrlGenerator(UrlGeneratorInterface $url_generator)

Sets the URL generator.

Parameters

\Drupal\Core\Routing\UrlGeneratorInterface $url_generator: The URL generator.

Return value

$this

File

core/lib/Drupal/Core/Template/TwigExtension.php, line 89

Class

TwigExtension
A class providing Drupal Twig extensions.

Namespace

Drupal\Core\Template

Code

public function setUrlGenerator(UrlGeneratorInterface $url_generator) {
  $this->urlGenerator = $url_generator;
  return $this;
}
doc_Drupal
2016-10-29 09:49:42
Comments
Leave a Comment

Please login to continue.