public static Drupal::urlGenerator()
Returns the url generator service.
Return value
\Drupal\Core\Routing\UrlGeneratorInterface The url generator service.
File
- core/lib/Drupal.php, line 504
- Contains \Drupal.
Class
- Drupal
- Static Service Container wrapper.
Code
1 2 3 | public static function urlGenerator() { return static ::getContainer()->get( 'url_generator' ); } |
Please login to continue.