You are here

public function ExternalAuthAuthmapAlterEvent::setUsername in External Authentication 8

Same name and namespace in other branches
  1. 2.0.x src/Event/ExternalAuthAuthmapAlterEvent.php \Drupal\externalauth\Event\ExternalAuthAuthmapAlterEvent::setUsername()

Sets the username.

Parameters

string $username: The username to generate when registering this user.

File

src/Event/ExternalAuthAuthmapAlterEvent.php, line 110

Class

ExternalAuthAuthmapAlterEvent
Allow event listeners to alter the authmap data that will get stored.

Namespace

Drupal\externalauth\Event

Code

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