public function StorageBase::setChecklistId in Checklist API 8
Sets the checklist ID.
Parameters
string $id: The checklist ID.
Return value
self The storage object.
Overrides StorageInterface::setChecklistId
File
- src/
Storage/ StorageBase.php, line 26
Class
- StorageBase
- Provides a base storage implementation for others to extend.
Namespace
Drupal\checklistapi\StorageCode
public function setChecklistId($id) {
if (!is_string($id)) {
throw new \InvalidArgumentException('A checklist ID must be a string.');
}
$this->checklistId = $id;
return $this;
}