diff --git a/core/modules/help/help.module b/core/modules/help/help.module index 0224b33..13edfb2 100644 --- a/core/modules/help/help.module +++ b/core/modules/help/help.module @@ -109,10 +109,8 @@ function help_list_hook_help_topics() { $module_info = system_rebuild_module_data(); foreach (\Drupal::moduleHandler()->getImplementations('help') as $module) { - if (\Drupal::moduleHandler()->invoke($module, 'help', ["help.page.$module", $route_match])) { - $title = $module_info[$module]->info['name']; - $topics[$title] = Link::createFromRoute($title, 'help.page', ['name' => $module]); - } + $title = $module_info[$module]->info['name']; + $topics[$title] = Link::createFromRoute($title, 'help.page', ['name' => $module]); } // Sort topics by title, which is the array key above. diff --git a/core/modules/help/src/Tests/NoHelpTest.php b/core/modules/help/src/Tests/NoHelpTest.php index f0213a9..cce40b2 100644 --- a/core/modules/help/src/Tests/NoHelpTest.php +++ b/core/modules/help/src/Tests/NoHelpTest.php @@ -43,7 +43,7 @@ public function testMainPageNoHelp() { $this->drupalGet('admin/help'); $this->assertResponse(200); - $this->assertText('Help is available on the following items', 'Help page is found.'); + $this->assertText('Module overviews are provided by modules'); $this->assertFalse(\Drupal::moduleHandler()->implementsHook('menu_test', 'help'), 'The menu_test module does not implement hook_help'); $this->assertNoText(\Drupal::moduleHandler()->getName('menu_test'), 'Making sure the test module menu_test does not display a help link on admin/help.');