protected function HelpTest::getModuleList in Drupal 8
Same name and namespace in other branches
- 9 core/modules/help/tests/src/Functional/HelpTest.php \Drupal\Tests\help\Functional\HelpTest::getModuleList()
Gets the list of enabled modules that implement hook_help().
Return value
array A list of enabled modules.
2 calls to HelpTest::getModuleList()
- HelpTest::testHelp in core/
modules/ help/ tests/ src/ Functional/ HelpTest.php - Logs in users, tests help pages.
- HelpTest::verifyHelp in core/
modules/ help/ tests/ src/ Functional/ HelpTest.php - Verifies the logged in user has access to the various help pages.
File
- core/
modules/ help/ tests/ src/ Functional/ HelpTest.php, line 164
Class
- HelpTest
- Verify help display and user access to help based on permissions.
Namespace
Drupal\Tests\help\FunctionalCode
protected function getModuleList() {
$modules = [];
$module_data = $this->container
->get('extension.list.module')
->getList();
foreach (\Drupal::moduleHandler()
->getImplementations('help') as $module) {
$modules[$module] = $module_data[$module]->info['name'];
}
return $modules;
}