Return .info.yml data for modules.
string $property: The .info.yml property to retrieve.
array An array keyed by module name, with the .info.yml file property as values. Only modules with the property specified in their .info.yml 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];
}