function update_storage_clear
Same name in other branches
- 9 core/modules/update/update.module \update_storage_clear()
- 8.9.x core/modules/update/update.module \update_storage_clear()
- 11.x core/modules/update/update.module \update_storage_clear()
Invalidates stored data relating to update status.
9 calls to update_storage_clear()
- DevReleaseTest::getProjectData in core/
modules/ update/ tests/ src/ Kernel/ DevReleaseTest.php - Gets project data from update_calculate_project_data().
- UpdateCalculateProjectDataTest::testProjectStatus in core/
modules/ update/ tests/ src/ Kernel/ UpdateCalculateProjectDataTest.php - Tests the project_status of the project.
- UpdateMiscTest::testFetchTasks in core/
modules/ update/ tests/ src/ Functional/ UpdateMiscTest.php - Tests that exactly one fetch task per project is created and not more.
- UpdateSemverCoreTest::testFetchTasks in core/
modules/ update/ tests/ src/ Functional/ UpdateSemverCoreTest.php - Tests that exactly one fetch task per project is created and not more.
- UpdateSettingsForm::submitForm in core/
modules/ update/ src/ UpdateSettingsForm.php - Form submission handler.
File
-
core/
modules/ update/ update.module, line 594
Code
function update_storage_clear() {
\Drupal::keyValueExpirable('update')->deleteAll();
\Drupal::keyValueExpirable('update_available_release')->deleteAll();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.