You are here

public function ThemeTestSubscriber::__construct in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/system/tests/modules/theme_test/src/EventSubscriber/ThemeTestSubscriber.php \Drupal\theme_test\EventSubscriber\ThemeTestSubscriber::__construct()
  2. 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: The route match handler.

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

File

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

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