function UpdateRegistry::getModuleUpdateFunctions

Same name in other branches
  1. 8.9.x core/lib/Drupal/Core/Update/UpdateRegistry.php \Drupal\Core\Update\UpdateRegistry::getModuleUpdateFunctions()

Returns all available updates for a given module.

Parameters

string $module_name: The module name.

Return value

callable[] A list of update functions.

Deprecated

in drupal:9.4.0 and is removed from drupal:10.0.0. Use \Drupal\Core\Update\UpdateRegistry::getUpdateFunctions() instead.

See also

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

File

core/lib/Drupal/Core/Update/UpdateRegistry.php, line 272

Class

UpdateRegistry
Provides all and missing update implementations.

Namespace

Drupal\Core\Update

Code

public function getModuleUpdateFunctions($module_name) {
    @trigger_error(__CLASS__ . '\\getModuleUpdateFunctions() is deprecated in drupal:9.4.0 and is removed from drupal:10.0.0. Use \\Drupal\\Core\\Update\\UpdateRegistry::getUpdateFunctions() instead. See https://www.drupal.org/node/3260162', E_USER_DEPRECATED);
    return $this->getUpdateFunctions($module_name);
}

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