public function MenuTestController::__construct in Drupal 10
Same name and namespace in other branches
- 8 core/modules/system/tests/modules/menu_test/src/Controller/MenuTestController.php \Drupal\menu_test\Controller\MenuTestController::__construct()
- 9 core/modules/system/tests/modules/menu_test/src/Controller/MenuTestController.php \Drupal\menu_test\Controller\MenuTestController::__construct()
Constructs the MenuTestController object.
Parameters
\Drupal\menu_test\Controller\ThemeManagerInterface $theme_manager: The theme manager.
\Drupal\menu_test\Controller\ThemeNegotiatorInterface $theme_negotiator: The theme negotiator.
\Drupal\menu_test\Controller\RouteMatchInterface $route_match: The current route match.
File
- core/
modules/ system/ tests/ modules/ menu_test/ src/ Controller/ MenuTestController.php, line 47
Class
- MenuTestController
- Controller routines for menu_test routes.
Namespace
Drupal\menu_test\ControllerCode
public function __construct(ThemeManagerInterface $theme_manager, ThemeNegotiatorInterface $theme_negotiator, RouteMatchInterface $route_match) {
$this->themeManager = $theme_manager;
$this->themeNegotiator = $theme_negotiator;
$this->routeMatch = $route_match;
}