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