public function ClientTestForm::clearAccessToken in OAuth2 Client 8.2
Clear the authorization token for the selected OAuth2 Client.
File
- src/
Form/ ClientTestForm.php, line 301
Class
- ClientTestForm
- Defines the form for testing OAuth2 Client integrations.
Namespace
Drupal\oauth2_client\FormCode
public function clearAccessToken(array &$form, FormStateInterface $form_state) {
$form_state
->setRebuild(TRUE);
$this->oauth2ClientService
->clearAccessToken($form_state
->getValue('oauth2_client_plugin'));
}