You are here

function checklistapiexample_uninstall in Checklist API 8

Implements hook_uninstall().

File

checklistapiexample/checklistapiexample.install, line 11
Install, update and uninstall functions for the checklistapiexample module.

Code

function checklistapiexample_uninstall() {

  /** @var \Drupal\checklistapi\Storage\StateStorage $storage */
  $storage = \Drupal::service('checklistapi_storage.state');
  $storage
    ->setChecklistId('example_checklist')
    ->deleteSavedProgress();
}