public function CasUserManager::getCasUsernameForAccount in CAS 2.x
Same name and namespace in other branches
- 8 src/Service/CasUserManager.php \Drupal\cas\Service\CasUserManager::getCasUsernameForAccount()
Return CAS username for account, or FALSE if it doesn't have one.
Parameters
int $uid: The user ID.
Return value
bool|string The CAS username if it exists, or FALSE otherwise.
File
- src/
Service/ CasUserManager.php, line 272
Class
- CasUserManager
- Provides the 'cas.user_manager' service default implementation.
Namespace
Drupal\cas\ServiceCode
public function getCasUsernameForAccount($uid) {
return $this->authmap
->get($uid, $this->provider);
}