public function ChecklistapiChecklist::clearSavedProgress in Checklist API 8
Clears the saved progress for the checklist.
Deletes the storage object containing the checklist's saved progress.
File
- src/
ChecklistapiChecklist.php, line 139
Class
- ChecklistapiChecklist
- Defines the checklist class.
Namespace
Drupal\checklistapiCode
public function clearSavedProgress() {
$this->storage
->deleteSavedProgress();
\Drupal::messenger()
->addMessage(t('%title saved progress has been cleared.', [
'%title' => $this->title,
]));
}