You are here

function api_tests_uninstall in Lightning API 8

Same name and namespace in other branches
  1. 8.2 tests/modules/api_tests/api_tests.install \api_tests_uninstall()

Implements hook_uninstall().

File

tests/modules/api_tests/api_tests.install, line 15

Code

function api_tests_uninstall() {
  $state = \Drupal::state();
  \Drupal::configFactory()
    ->getEditable('lightning_api.settings')
    ->setData($state
    ->get('api_tests'))
    ->save();
  $state
    ->delete('api_tests');
}