function ThemeTestSubscriber::__construct
Same name in other branches
- 8.9.x core/modules/system/tests/modules/theme_test/src/EventSubscriber/ThemeTestSubscriber.php \Drupal\theme_test\EventSubscriber\ThemeTestSubscriber::__construct()
- 10 core/modules/system/tests/modules/theme_test/src/EventSubscriber/ThemeTestSubscriber.php \Drupal\theme_test\EventSubscriber\ThemeTestSubscriber::__construct()
- 11.x 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\EventSubscriberCode
public function __construct(RouteMatchInterface $current_route_match, RendererInterface $renderer) {
$this->currentRouteMatch = $current_route_match;
$this->renderer = $renderer;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.