function UpdateRegistry::getRemovedPostUpdates
Same name in other branches
- 8.9.x core/lib/Drupal/Core/Update/UpdateRegistry.php \Drupal\Core\Update\UpdateRegistry::getRemovedPostUpdates()
- 10 core/lib/Drupal/Core/Update/UpdateRegistry.php \Drupal\Core\Update\UpdateRegistry::getRemovedPostUpdates()
- 11.x core/lib/Drupal/Core/Update/UpdateRegistry.php \Drupal\Core\Update\UpdateRegistry::getRemovedPostUpdates()
Gets removed hook_post_update_NAME() implementations for an extension.
Return value
string[] A list of post-update functions that have been removed.
2 calls to UpdateRegistry::getRemovedPostUpdates()
- UpdateRegistry::getAvailableUpdateFunctions in core/
lib/ Drupal/ Core/ Update/ UpdateRegistry.php - Gets all available update functions.
- UpdateRegistry::onConfigSave in core/
lib/ Drupal/ Core/ Update/ UpdateRegistry.php - Processes the list of installed extensions when core.extension changes.
File
-
core/
lib/ Drupal/ Core/ Update/ UpdateRegistry.php, line 98
Class
- UpdateRegistry
- Provides all and missing update implementations.
Namespace
Drupal\Core\UpdateCode
public function getRemovedPostUpdates($extension) {
$this->scanExtensionsAndLoadUpdateFiles($extension);
$function = "{$extension}_removed_post_updates";
if (function_exists($function)) {
return $function();
}
return [];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.