function apigee_edge_uninstall in Apigee Edge 8
Implements hook_uninstall().
File
- ./
apigee_edge.install, line 128 - Copyright 2018 Google Inc.
Code
function apigee_edge_uninstall() {
// Remove OAuth token data file.
// We do not check whether OAuth was the authentication method in use
// because this function does not trigger an error if it was not.
$storage = \Drupal::service('apigee_edge.authentication.oauth_token_storage');
if ($storage instanceof OauthTokenFileStorage) {
$storage
->removeTokenFile();
}
}