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; }
Please login to continue.