You are here

public function CasPreRegisterEvent::setDrupalUsername in CAS 2.x

Same name and namespace in other branches
  1. 8 src/Event/CasPreRegisterEvent.php \Drupal\cas\Event\CasPreRegisterEvent::setDrupalUsername()

Assign a different username to the Drupal account that is to be registered.

Parameters

string $username: The username.

File

src/Event/CasPreRegisterEvent.php, line 104

Class

CasPreRegisterEvent
Class CasPreRegisterEvent.

Namespace

Drupal\cas\Event

Code

public function setDrupalUsername($username) {
  $this->drupalUsername = $username;
}