You are here

public function ThemeTestSubscriber::__construct in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/system/tests/modules/theme_test/src/EventSubscriber/ThemeTestSubscriber.php \Drupal\theme_test\EventSubscriber\ThemeTestSubscriber::__construct()

Constructs a new ThemeTestSubscriber.

Parameters

\Drupal\Core\Routing\RouteMatchInterface $current_route_match:

\Drupal\Core\Render\RendererInterface $renderer: The renderer.

File

core/modules/system/tests/modules/theme_test/src/EventSubscriber/ThemeTestSubscriber.php, line 46

Class

ThemeTestSubscriber
Theme test subscriber for controller requests.

Namespace

Drupal\theme_test\EventSubscriber

Code

public function __construct(RouteMatchInterface $current_route_match, RendererInterface $renderer) {
  $this->currentRouteMatch = $current_route_match;
  $this->renderer = $renderer;
}