You are here

public function LinkGenerator::__construct in Service Container 7.2

Same name and namespace in other branches
  1. 7 src/LinkGenerator.php \Drupal\service_container\LinkGenerator::__construct()

Constructs a new LinkGenerator instance.

Parameters

\Drupal\service_container\Legacy\Drupal7 $drupal7: The Drupal7 service.

File

src/LinkGenerator.php, line 34
Contains \Drupal\service_container\LinkGenerator.

Class

LinkGenerator
Generates a link out from a given path, title and options.

Namespace

Drupal\service_container

Code

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