public function W3CTokenManager::rewokeAccessToken in W3C Validator 8
Rewoke and access token.
Parameters
string $token: The token to rewoke.
File
- src/
W3CTokenManager.php, line 78
Class
- W3CTokenManager
- Token manager: allow to be logged as a user from URL.
Namespace
Drupal\w3c_validatorCode
public function rewokeAccessToken($token) {
if ($token != NULL) {
$this->database
->delete('w3c_access_token')
->condition('token', $token)
->execute();
}
}