On this page
function drupal_get_updaters
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
File
- core/includes/common.inc, line 1268
- Common functions that many Drupal modules will need to reference.
Code
function drupal_get_updaters() {
$updaters = &drupal_static(__FUNCTION__);
if (!isset($updaters)) {
$updaters = \Drupal::moduleHandler()->invokeAll('updater_info');
\Drupal::moduleHandler()->alter('updater_info', $updaters);
uasort($updaters, array(SortArray::class, 'sortByWeightElement'));
}
return $updaters;
}
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!includes!common.inc/function/drupal_get_updaters/8.1.x