function UpdateRegistry::getRemovedPostUpdates

Same name in other branches
  1. 9 core/lib/Drupal/Core/Update/UpdateRegistry.php \Drupal\Core\Update\UpdateRegistry::getRemovedPostUpdates()
  2. 10 core/lib/Drupal/Core/Update/UpdateRegistry.php \Drupal\Core\Update\UpdateRegistry::getRemovedPostUpdates()
  3. 11.x 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\Update

Code

public function getRemovedPostUpdates($module) {
    $this->scanExtensionsAndLoadUpdateFiles();
    $function = "{$module}_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.