Skip to content
Snippets Groups Projects
Commit d45d23f3 authored by Bhanu D's avatar Bhanu D
Browse files

Removed unrelated changes.

parent ade37183
No related branches found
No related tags found
No related merge requests found
Pipeline #353999 failed
......@@ -11,6 +11,7 @@
use Drupal\Component\Graph\Graph;
use Drupal\Core\Extension\Exception\UnknownExtensionException;
use Drupal\Core\Utility\Error;
use Drupal\Core\Update\EquivalentUpdate;
/**
* Returns whether the minimum schema requirement has been satisfied.
......@@ -186,7 +187,12 @@ function update_do_one($module, $number, $dependency_map, &$context) {
}
$results = [];
if (function_exists($function)) {
$equivalent_update = \Drupal::service('update.update_hook_registry')->getEquivalentUpdate($module, $number);
if ($equivalent_update instanceof EquivalentUpdate) {
$ret['results']['query'] = $equivalent_update->toSkipMessage();
$ret['results']['success'] = TRUE;
$context['sandbox']['#finished'] = TRUE;
} elseif (function_exists($function)) {
try {
// Update functions can return a single message, an array of messages, or
// nothing at all.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment