You are here

public function WebprofilerEventSubscriber::__construct in Devel 4.x

Same name and namespace in other branches
  1. 8.3 webprofiler/src/EventSubscriber/WebprofilerEventSubscriber.php \Drupal\webprofiler\EventSubscriber\WebprofilerEventSubscriber::__construct()
  2. 8 webprofiler/src/EventSubscriber/WebprofilerEventSubscriber.php \Drupal\webprofiler\EventSubscriber\WebprofilerEventSubscriber::__construct()
  3. 8.2 webprofiler/src/EventSubscriber/WebprofilerEventSubscriber.php \Drupal\webprofiler\EventSubscriber\WebprofilerEventSubscriber::__construct()

Parameters

\Drupal\Core\Session\AccountInterface $currentUser:

\Drupal\Core\Routing\UrlGeneratorInterface $urlGenerator:

\Drupal\Core\Render\RendererInterface $renderer:

File

webprofiler/src/EventSubscriber/WebprofilerEventSubscriber.php, line 38

Class

WebprofilerEventSubscriber
Class WebprofilerEventSubscriber.

Namespace

Drupal\webprofiler\EventSubscriber

Code

public function __construct(AccountInterface $currentUser, UrlGeneratorInterface $urlGenerator, RendererInterface $renderer) {
  $this->currentUser = $currentUser;
  $this->urlGenerator = $urlGenerator;
  $this->renderer = $renderer;
}