public function UrlGeneratorTrait::setUrlGenerator in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/lib/Drupal/Core/Routing/UrlGeneratorTrait.php \Drupal\Core\Routing\UrlGeneratorTrait::setUrlGenerator()
Sets the URL generator service.
Parameters
\Drupal\Core\Routing\UrlGeneratorInterface $generator: The url generator service.
Return value
$this
1 call to UrlGeneratorTrait::setUrlGenerator()
- AccessDeniedSubscriber::__construct in core/
modules/ user/ src/ EventSubscriber/ AccessDeniedSubscriber.php - Constructs a new redirect subscriber.
File
- core/
lib/ Drupal/ Core/ Routing/ UrlGeneratorTrait.php, line 85 - Contains \Drupal\Core\Routing\UrlGeneratorTrait.
Class
- UrlGeneratorTrait
- Wrapper methods for the Url Generator.
Namespace
Drupal\Core\RoutingCode
public function setUrlGenerator(UrlGeneratorInterface $generator) {
$this->urlGenerator = $generator;
return $this;
}