public function AdvancedHelpManager::getModuleList in Advanced Help 8
Get the modules/theme list.
@todo cache
File
- src/
AdvancedHelpManager.php, line 55
Class
- AdvancedHelpManager
- AdvancedHelp plugin manager.
Namespace
Drupal\advanced_helpCode
public function getModuleList() {
$modules = $this->module_handler
->getModuleList();
$themes = $this->theme_handler
->listInfo();
$result = [];
foreach ($modules as $name => $data) {
$result[$name] = $this->module_handler
->getName($name);
}
foreach ($themes as $name => $data) {
$result[$name] = $this->theme_handler
->getName($name);
}
return $result;
}