public function WebprofilerEventSubscriber::__construct in Devel 8.2
Same name and namespace in other branches
- 8.3 webprofiler/src/EventSubscriber/WebprofilerEventSubscriber.php \Drupal\webprofiler\EventSubscriber\WebprofilerEventSubscriber::__construct()
- 8 webprofiler/src/EventSubscriber/WebprofilerEventSubscriber.php \Drupal\webprofiler\EventSubscriber\WebprofilerEventSubscriber::__construct()
- 4.x 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\EventSubscriberCode
public function __construct(AccountInterface $currentUser, UrlGeneratorInterface $urlGenerator, RendererInterface $renderer) {
$this->currentUser = $currentUser;
$this->urlGenerator = $urlGenerator;
$this->renderer = $renderer;
}