public function ExternalAuthAuthmapAlterEvent::setUsername in External Authentication 8
Same name and namespace in other branches
- 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\EventCode
public function setUsername($username) {
$this->username = $username;
}