public function Updater::clean in Automatic Updates 8.2
Cleans the current update.
File
- src/
Updater.php, line 212
Class
- Updater
- Defines a service to perform updates.
Namespace
Drupal\automatic_updatesCode
public function clean() : void {
$stage_dir = $this->pathLocator
->getStageDirectory();
if (is_dir($stage_dir)) {
$this->cleaner
->clean($stage_dir);
}
$this->state
->delete(static::STATE_KEY);
}