function update_storage_clear

Same name and namespace in other branches
  1. 10 core/modules/update/update.module \update_storage_clear()
  2. 9 core/modules/update/update.module \update_storage_clear()
  3. 8.9.x core/modules/update/update.module \update_storage_clear()
  4. main core/modules/update/update.module \update_storage_clear()

Invalidates stored data relating to update status.

Deprecated

in drupal:11.5.0 and is removed from drupal:13.0.0. Use \Drupal\update\UpdateManagerInterface::reset() instead.

See also

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

File

core/modules/update/update.module, line 371

Code

function update_storage_clear() : void {
  @trigger_error(__FUNCTION__ . '() is deprecated in drupal:11.5.0 and is removed from drupal:13.0.0. Use \\Drupal\\update\\UpdateManagerInterface::reset() instead. See https://www.drupal.org/node/3592959', E_USER_DEPRECATED);
  \Drupal::service(UpdateManagerInterface::class)->reset();
}

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