protected Url::urlGenerator()
Gets the URL generator.
Return value
\Drupal\Core\Routing\UrlGeneratorInterface The URL generator.
File
- core/lib/Drupal/Core/Url.php, line 825
Class
- Url
- Defines an object that holds information about a URL.
Namespace
Drupal\Core
Code
protected function urlGenerator() { if (!$this->urlGenerator) { $this->urlGenerator = \Drupal::urlGenerator(); } return $this->urlGenerator; }
Please login to continue.