Same name and namespace in other branches
  1. 7.x modules/system/system.module \_system_rebuild_module_data()

Helper function to scan and collect module .info.yml data.

Return value

\Drupal\Core\Extension\Extension[] An associative array of module information.

Deprecated

in drupal:8.5.0 and is removed from drupal:9.0.0. Use \Drupal::service('extension.list.module')->reset()->getList() instead. Note: You probably don't need the reset() method.

See also

https://www.drupal.org/node/2709919

File

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

Code

function _system_rebuild_module_data() {
  @trigger_error("_system_rebuild_module_data() is deprecated in Drupal 8.5.0 and will be removed before Drupal 9.0.0. Instead, you should use \\Drupal::service('extension.list.module')->reset()->getList(). See https://www.drupal.org/node/2709919", E_USER_DEPRECATED);
  return \Drupal::service('extension.list.module')
    ->reset()
    ->getList();
}