diff --git a/core/modules/system/system.module b/core/modules/system/system.module index 386d80b..053b4a9 100644 --- a/core/modules/system/system.module +++ b/core/modules/system/system.module @@ -1040,8 +1040,14 @@ function _system_rebuild_module_data() { * * @return \Drupal\Core\Extension\Extension[] * Array of all available modules and their data. + * + * @deprecated in Drupal 8.6.0 and will be removed before Drupal 9.0.0. + * Use \Drupal::service('extension.list.module')->getList() instead. + * + * @see https://www.drupal.org/node/2926068 */ function system_rebuild_module_data() { + @trigger_error("system_rebuild_module_data() is deprecated in Drupal 8.6.0 and will be removed before Drupal 9.0.0. Instead, you should use \\Drupal::service('extension.list.module')->getList(). See https://www.drupal.org/node/2926068", E_USER_DEPRECATED); return \Drupal::service('extension.list.module')->reset()->getList(); }