You are here

public function CasUserManager::getCasUsernameForAccount in CAS 8

Same name and namespace in other branches
  1. 2.x 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 278

Class

CasUserManager
Class CasUserManager.

Namespace

Drupal\cas\Service

Code

public function getCasUsernameForAccount($uid) {
  return $this->authmap
    ->get($uid, $this->provider);
}