public function ExternalAuthAuthmapAlterEvent::__construct in External Authentication 2.0.x
Same name and namespace in other branches
- 8 src/Event/ExternalAuthAuthmapAlterEvent.php \Drupal\externalauth\Event\ExternalAuthAuthmapAlterEvent::__construct()
Constructs a authmap alter event object.
Parameters
string $provider: The name of the service providing external authentication.
string $authname: The unique, external authentication name provided by authentication provider.
string $username: The username to generate when registering this user.
mixed $data: Optional extra (serialized) data to store with the authname.
File
- src/
Event/ ExternalAuthAuthmapAlterEvent.php, line 55
Class
- ExternalAuthAuthmapAlterEvent
- Allow event listeners to alter the authmap data that will get stored.
Namespace
Drupal\externalauth\EventCode
public function __construct($provider, $authname, $username, $data = NULL) {
$this->provider = $provider;
$this->authname = $authname;
$this->username = $username;
$this->data = $data;
}