function HelpController::create

Same name and namespace in other branches
  1. 9 core/modules/help/src/Controller/HelpController.php \Drupal\help\Controller\HelpController::create()
  2. 10 core/modules/help/src/Controller/HelpController.php \Drupal\help\Controller\HelpController::create()
  3. 11.x core/modules/help/src/Controller/HelpController.php \Drupal\help\Controller\HelpController::create()

Overrides ControllerBase::create

File

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

Class

HelpController
Controller routines for help routes.

Namespace

Drupal\help\Controller

Code

public static function create(ContainerInterface $container) {
    return new static($container->get('current_route_match'), $container->get('plugin.manager.help_section'), $container->get('extension.list.module'));
}

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