W3cubDocs

/Drupal 8

function update_storage_clear

update_storage_clear()

Invalidates stored data relating to update status.

File

core/modules/update/update.module, line 641
Handles updates of Drupal core and contributed projects.

Code

function update_storage_clear() {
  \Drupal::keyValueExpirable('update')->deleteAll();
  \Drupal::keyValueExpirable('update_available_release')->deleteAll();
}

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!modules!update!update.module/function/update_storage_clear/8.1.x