You are here

protected function StorageBase::getChecklistId in Checklist API 8

Gets the checklist ID.

Return value

string Returns the checklist ID.

1 call to StorageBase::getChecklistId()
StateStorage::stateKey in src/Storage/StateStorage.php
Returns the state key.

File

src/Storage/StorageBase.php, line 40

Class

StorageBase
Provides a base storage implementation for others to extend.

Namespace

Drupal\checklistapi\Storage

Code

protected function getChecklistId() {
  if (empty($this->checklistId)) {
    throw new \LogicException('You must set the checklist ID before accessing saved progress.');
  }
  return $this->checklistId;
}