public function UpdateRegistry::getRemovedPostUpdates in Drupal 9
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/Update/UpdateRegistry.php \Drupal\Core\Update\UpdateRegistry::getRemovedPostUpdates()
Gets removed hook_post_update_NAME() implementations for a module.
Return value
string[] A list of post-update functions that have been removed.
1 call to UpdateRegistry::getRemovedPostUpdates()
- UpdateRegistry::getAvailableUpdateFunctions in core/
lib/ Drupal/ Core/ Update/ UpdateRegistry.php - Gets all available update functions.
File
- core/
lib/ Drupal/ Core/ Update/ UpdateRegistry.php, line 95
Class
- UpdateRegistry
- Provides all and missing update implementations.
Namespace
Drupal\Core\UpdateCode
public function getRemovedPostUpdates($module) {
$this
->scanExtensionsAndLoadUpdateFiles();
$function = "{$module}_removed_post_updates";
if (function_exists($function)) {
return $function();
}
return [];
}