You are here

public function UrlGenerator::__construct in Service Container 7.2

Same name and namespace in other branches
  1. 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_container

Code

public function __construct(Drupal7 $drupal7) {
  $this->drupal7 = $drupal7;
}