You are here

public function CasPreRegisterEvent::setDrupalUsername in CAS 8

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

Class

CasPreRegisterEvent
Class CasPreRegisterEvent.

Namespace

Drupal\cas\Event

Code

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