You are here

public function MenuTestController::__construct in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 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 52
Contains \Drupal\menu_test\Controller\MenuTestController.

Class

MenuTestController
Controller routines for menu_test routes.

Namespace

Drupal\menu_test\Controller

Code

public function __construct(ThemeManagerInterface $theme_manager, ThemeNegotiatorInterface $theme_negotiator, RouteMatchInterface $route_match) {
  $this->themeManager = $theme_manager;
  $this->themeNegotiator = $theme_negotiator;
  $this->routeMatch = $route_match;
}