You are here

public function BadgeController::__construct in User Badges 8

Constructs a BadgeController object.

Parameters

\Drupal\Core\Utility\LinkGeneratorInterface linkGenerator: Link generator service.

File

src/Controller/BadgeController.php, line 38
Contains \Drupal\user_badges\Controller\BadgeController.

Class

BadgeController
Class BadgeController.

Namespace

Drupal\user_badges\Controller

Code

public function __construct(LinkGeneratorInterface $linkGenerator) {
  $this->linkGenerator = $linkGenerator;
}