function system_get_module_info

Return .info.yml data for modules.

Parameters

string $property: The .info.yml property to retrieve.

Return value

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.

See also

Drupal\Core\Utility\ModuleInfo

2 calls to system_get_module_info()
SearchSettingsForm::getModuleOptions in drupal/core/modules/search/lib/Drupal/search/Form/SearchSettingsForm.php
Returns names of available search modules.
UserData::buildOptionsForm in drupal/core/modules/user/lib/Drupal/user/Plugin/views/field/UserData.php
Overrides \Drupal\views\Plugin\views\field\FieldPluginBase::defineOptions().

File

drupal/core/modules/system/system.module, line 2787
Configuration system that lets administrators modify the workings of the site.

Code

function system_get_module_info($property) {
  static $info;
  if (!isset($info)) {
    $info = new ModuleInfo('system_info', 'cache');
  }
  return $info[$property];
}