function hook_updater_info_alter

Same name in other branches
  1. 7.x modules/system/system.api.php \hook_updater_info_alter()
  2. 9 core/lib/Drupal/Core/Extension/module.api.php \hook_updater_info_alter()
  3. 8.9.x core/lib/Drupal/Core/Extension/module.api.php \hook_updater_info_alter()
  4. 10 core/lib/Drupal/Core/Extension/module.api.php \hook_updater_info_alter()

Alter the Updater information array.

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.

Parameters

array $updaters: Associative array of updaters as defined through hook_updater_info(). Alter this array directly.

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 also

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

drupal_get_updaters()

hook_updater_info()

Related topics

File

core/lib/Drupal/Core/Extension/module.api.php, line 1076

Code

function hook_updater_info_alter(&$updaters) {
    // Adjust weight so that the theme Updater gets a chance to handle a given
    // update task before module updaters.
    $updaters['theme']['weight'] = -1;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.