You are here

public function ExternalAuthAuthmapAlterEvent::__construct in External Authentication 8

Same name and namespace in other branches
  1. 2.0.x 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\Event

Code

public function __construct($provider, $authname, $username, $data = NULL) {
  $this->provider = $provider;
  $this->authname = $authname;
  $this->username = $username;
  $this->data = $data;
}