You are here

public function ChecklistapiChecklist::getSavedProgressVariableName in Checklist API 7

Gets the name of the Drupal variable for the checklist's saved progress.

Return value

string The Drupal variable name.

4 calls to ChecklistapiChecklist::getSavedProgressVariableName()
ChecklistapiChecklist::clearSavedProgress in lib/Drupal/checklistapi/ChecklistapiChecklist.php
Clears the saved progress for the checklist.
ChecklistapiChecklist::hasSavedProgress in lib/Drupal/checklistapi/ChecklistapiChecklist.php
Determines whether the checklist has saved progress.
ChecklistapiChecklist::saveProgress in lib/Drupal/checklistapi/ChecklistapiChecklist.php
Saves checklist progress to a Drupal variable.
ChecklistapiChecklist::__construct in lib/Drupal/checklistapi/ChecklistapiChecklist.php
Constructs a ChecklistapiChecklist object.

File

lib/Drupal/checklistapi/ChecklistapiChecklist.php, line 181
Class for Checklist API checklists.

Class

ChecklistapiChecklist
Defines the checklist class.

Code

public function getSavedProgressVariableName() {
  return "checklistapi_checklist_{$this->id}";
}