public function Url::setUrlGenerator in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/lib/Drupal/Core/Url.php \Drupal\Core\Url::setUrlGenerator()
Sets the URL generator.
Parameters
\Drupal\Core\Routing\UrlGeneratorInterface: (optional) The URL generator, specify NULL to reset it.
Return value
$this
File
- core/
lib/ Drupal/ Core/ Url.php, line 867 - Contains \Drupal\Core\Url.
Class
- Url
- Defines an object that holds information about a URL.
Namespace
Drupal\CoreCode
public function setUrlGenerator(UrlGeneratorInterface $url_generator = NULL) {
$this->urlGenerator = $url_generator;
$this->internalPath = NULL;
return $this;
}