function MenuTestController::__construct

Same name and namespace in other branches
  1. 11.x core/modules/system/tests/modules/menu_test/src/Controller/MenuTestController.php \Drupal\menu_test\Controller\MenuTestController::__construct()
  2. 10 core/modules/system/tests/modules/menu_test/src/Controller/MenuTestController.php \Drupal\menu_test\Controller\MenuTestController::__construct()
  3. 9 core/modules/system/tests/modules/menu_test/src/Controller/MenuTestController.php \Drupal\menu_test\Controller\MenuTestController::__construct()
  4. 8.9.x core/modules/system/tests/modules/menu_test/src/Controller/MenuTestController.php \Drupal\menu_test\Controller\MenuTestController::__construct()

Constructs the MenuTestController object.

Parameters

\Drupal\Core\Theme\ThemeManagerInterface $themeManager: The theme manager.

\Drupal\Core\Theme\ThemeNegotiatorInterface $themeNegotiator: The theme negotiator.

\Drupal\Core\Routing\RouteMatchInterface $routeMatch: The current route match.

File

core/modules/system/tests/modules/menu_test/src/Controller/MenuTestController.php, line 27

Class

MenuTestController
Controller routines for menu_test routes.

Namespace

Drupal\menu_test\Controller

Code

public function __construct(protected ThemeManagerInterface $themeManager, protected ThemeNegotiatorInterface $themeNegotiator, protected RouteMatchInterface $routeMatch) {
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.