Skip to content
Snippets Groups Projects
Commit df1a2b06 authored by catch's avatar catch
Browse files

Issue #3097421 by longwave, andypost: Remove help.module BC layers

parent 273acd7a
No related branches found
No related tags found
No related merge requests found
...@@ -44,16 +44,11 @@ class HelpController extends ControllerBase { ...@@ -44,16 +44,11 @@ class HelpController extends ControllerBase {
* @param \Drupal\help\HelpSectionManager $help_manager * @param \Drupal\help\HelpSectionManager $help_manager
* The help section manager. * The help section manager.
* @param \Drupal\Core\Extension\ModuleExtensionList|null $module_extension_list * @param \Drupal\Core\Extension\ModuleExtensionList|null $module_extension_list
* The module extension list. This is left optional for BC reasons, but the * The module extension list.
* optional usage is deprecated and will become required in Drupal 9.0.0.
*/ */
public function __construct(RouteMatchInterface $route_match, HelpSectionManager $help_manager, ModuleExtensionList $module_extension_list = NULL) { public function __construct(RouteMatchInterface $route_match, HelpSectionManager $help_manager, ModuleExtensionList $module_extension_list) {
$this->routeMatch = $route_match; $this->routeMatch = $route_match;
$this->helpManager = $help_manager; $this->helpManager = $help_manager;
if ($module_extension_list === NULL) {
@trigger_error('Calling HelpController::__construct() with the $module_extension_list argument is supported in drupal:8.8.0 and will be required before drupal:9.0.0. See https://www.drupal.org/node/2709919.', E_USER_DEPRECATED);
$module_extension_list = \Drupal::service('extension.list.module');
}
$this->moduleExtensionList = $module_extension_list; $this->moduleExtensionList = $module_extension_list;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment