public function ConfigStorage::setSavedProgress in Checklist API 8
Sets the saved checklist progress.
Parameters
array $progress: An array of checklist progress data as built by ChecklistapiChecklist.
Overrides StorageInterface::setSavedProgress
File
- src/
Storage/ ConfigStorage.php, line 51
Class
- ConfigStorage
- Provides config-based checklist progress storage.
Namespace
Drupal\checklistapi\StorageCode
public function setSavedProgress(array $progress) {
$this
->getConfig()
->set(self::CONFIG_KEY, $progress)
->save();
}