You are here

public function HelpController::__construct in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/help/src/Controller/HelpController.php \Drupal\help\Controller\HelpController::__construct()
  2. 9 core/modules/help/src/Controller/HelpController.php \Drupal\help\Controller\HelpController::__construct()

Creates a new HelpController.

Parameters

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

\Drupal\help\HelpSectionManager $help_manager: The help section manager.

\Drupal\Core\Extension\ModuleExtensionList|null $module_extension_list: The module extension list.

File

core/modules/help/src/Controller/HelpController.php, line 50

Class

HelpController
Controller routines for help routes.

Namespace

Drupal\help\Controller

Code

public function __construct(RouteMatchInterface $route_match, HelpSectionManager $help_manager, ModuleExtensionList $module_extension_list) {
  $this->routeMatch = $route_match;
  $this->helpManager = $help_manager;
  $this->moduleExtensionList = $module_extension_list;
}