You are here

public function ThemeTestSubscriber::__construct in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 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 50
Contains \Drupal\theme_test\EventSubscriber\ThemeTestSubscriber.

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;
}