LinkGenerator::$urlGenerator

Same name in other branches
  1. 9 core/lib/Drupal/Core/Utility/LinkGenerator.php \Drupal\Core\Utility\LinkGenerator::urlGenerator
  2. 8.9.x core/lib/Drupal/Core/Utility/LinkGenerator.php \Drupal\Core\Utility\LinkGenerator::urlGenerator
  3. 11.x core/lib/Drupal/Core/Utility/LinkGenerator.php \Drupal\Core\Utility\LinkGenerator::urlGenerator

The URL generator.

Type: \Drupal\Core\Routing\UrlGeneratorInterface

File

core/lib/Drupal/Core/Utility/LinkGenerator.php, line 28

Class

LinkGenerator
Provides a class which generates a link with route names and parameters.

Namespace

Drupal\Core\Utility

Code

protected $urlGenerator;

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.