You are here

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

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

Gets the username.

Return value

string The username to generate when registering this user.

File

src/Event/ExternalAuthAuthmapAlterEvent.php, line 100

Class

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

Namespace

Drupal\externalauth\Event

Code

public function getUsername() {
  return $this->username;
}