public function MetricService::getModuleList in Drupalmonitor 8
Get Module List.
Return value
array Array with Modules and their info from info.yml file.
File
- src/
MetricService.php, line 113
Class
- MetricService
- Class MetricService.
Namespace
Drupal\drupalmonitorCode
public function getModuleList() {
$modules_list = [];
/** @var \Drupal\Core\Extension\Extension $module_info */
foreach ($this->moduleHandler
->getModuleList() as $module_name => $module_info) {
$modules_list[$module_name] = Yaml::parseFile($module_info
->getPathname());
}
return $modules_list;
}