diff --git a/core/lib/Drupal/Core/Extension/module.api.php b/core/lib/Drupal/Core/Extension/module.api.php index e30230b407..06b2e0e24b 100644 --- a/core/lib/Drupal/Core/Extension/module.api.php +++ b/core/lib/Drupal/Core/Extension/module.api.php @@ -840,7 +840,7 @@ function hook_update_last_removed() { * * @ingroup update_api * - * @see drupal_get_updaters() + * @see \Drupal\Core\Updater\Updater::getUpdaterRegistry() * @see hook_updater_info_alter() */ function hook_updater_info() { @@ -871,7 +871,7 @@ function hook_updater_info() { * * @ingroup update_api * - * @see drupal_get_updaters() + * @see \Drupal\Core\Updater\Updater::getUpdaterRegistry() * @see hook_updater_info() */ function hook_updater_info_alter(&$updaters) { diff --git a/core/lib/Drupal/Core/Updater/Updater.php b/core/lib/Drupal/Core/Updater/Updater.php index 77d5ecc085..72dfbeb2b2 100644 --- a/core/lib/Drupal/Core/Updater/Updater.php +++ b/core/lib/Drupal/Core/Updater/Updater.php @@ -90,7 +90,7 @@ public static function factory($source, $root) { */ public static function getUpdaterFromDirectory($directory) { // Gets a list of possible implementing classes. - $updaters = drupal_get_updaters(); + $updaters = static::getUpdaterRegistry(); foreach ($updaters as $updater) { $class = $updater['class']; if (call_user_func([$class, 'canUpdateDirectory'], $directory)) {