You are here

public function UpdateRefreshSubscriber::clearData in Automatic Updates 8.2

Clears stale update data.

File

src/Event/UpdateRefreshSubscriber.php, line 34

Class

UpdateRefreshSubscriber
Clears stale update data once a staged update has been committed.

Namespace

Drupal\automatic_updates\Event

Code

public function clearData() : void {
  $this->updateManager
    ->refreshUpdateData();
  update_storage_clear();
}