Return .info data for modules.
string $property: The .info property to retrieve.
array An array keyed by module name, with the .info file property as values. Only modules with the property specified in their .info file will be returned.
Drupal\Core\Utility\ModuleInfo
function system_get_module_info($property) {
static $info;
if (!isset($info)) {
$info = new ModuleInfo('system_info', 'cache');
}
return $info[$property];
}