public function CasUserManager::removeCasUsernameForAccount in CAS 8
Same name and namespace in other branches
- 2.x src/Service/CasUserManager.php \Drupal\cas\Service\CasUserManager::removeCasUsernameForAccount()
Remove the CAS username association with the provided user.
Parameters
\Drupal\user\UserInterface $account: The user account entity.
File
- src/
Service/ CasUserManager.php, line 313
Class
- CasUserManager
- Class CasUserManager.
Namespace
Drupal\cas\ServiceCode
public function removeCasUsernameForAccount(UserInterface $account) {
$this->authmap
->delete($account
->id(), $this->provider);
}