You are here

public function ExternalAuthAuthmapAlterEvent::setUsername in External Authentication 2.0.x

Same name and namespace in other branches
  1. 8 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;
}