You are here

public function UpdaterForm::deleteExistingUpdate in Automatic Updates 8.2

Submit function to delete an existing in-progress update.

File

src/Form/UpdaterForm.php, line 228

Class

UpdaterForm
Defines a form to update Drupal core.

Namespace

Drupal\automatic_updates\Form

Code

public function deleteExistingUpdate() : void {
  $this->updater
    ->clean();
  $this
    ->messenger()
    ->addMessage($this
    ->t("Staged update deleted"));
}