public function StateStorage::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/ StateStorage.php, line 39
Class
- StateStorage
- Provides state-based checklist progress storage.
Namespace
Drupal\checklistapi\StorageCode
public function setSavedProgress(array $progress) {
$this->state
->set($this
->stateKey(), $progress);
}