function drupal_get_updaters
Assembles the Drupal Updater registry.
An Updater is a class that knows how to update various parts of the Drupal file system, for example to update modules that have newer releases, or to install a new theme.
Return value
array The Drupal Updater class registry.
See also
1 call to drupal_get_updaters()
- Updater::getUpdaterFromDirectory in core/
lib/ Drupal/ Core/ Updater/ Updater.php - Determines which Updater class can operate on the given directory.
File
-
core/
includes/ common.inc, line 498
Code
function drupal_get_updaters() {
@trigger_error(__FUNCTION__ . '() is deprecated in drupal:11.2.0 and is removed from drupal:12.0.0. There is no replacement. Use composer to manage the code for your site. See https://www.drupal.org/node/3512364', E_USER_DEPRECATED);
$updaters =& drupal_static(__FUNCTION__);
if (!isset($updaters)) {
$updaters = \Drupal::moduleHandler()->invokeAllDeprecated('There is no replacement. Use composer to manage the code for your site. See https://www.drupal.org/node/3512364', 'updater_info');
\Drupal::moduleHandler()->alterDeprecated('There is no replacement. Use composer to manage the code for your site. See https://www.drupal.org/node/3512364', 'updater_info', $updaters);
uasort($updaters, [
SortArray::class,
'sortByWeightElement',
]);
}
return $updaters;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.