public function UrlGenerator::__construct in Service Container 7.2
Same name and namespace in other branches
- 7 src/UrlGenerator.php \Drupal\service_container\UrlGenerator::__construct()
Constructs a new UrlGenerator instance.
Parameters
\Drupal\service_container\Legacy\Drupal7 $drupal7: The Drupal7 service.
File
- src/
UrlGenerator.php, line 34 - Contains \Drupal\service_container\UrlGenerator.
Class
- UrlGenerator
- Generates a URL out of a path and options.
Namespace
Drupal\service_containerCode
public function __construct(Drupal7 $drupal7) {
$this->drupal7 = $drupal7;
}