public function ExternalAuthRegisterEvent::__construct in External Authentication 2.0.x
Same name and namespace in other branches
- 8 src/Event/ExternalAuthRegisterEvent.php \Drupal\externalauth\Event\ExternalAuthRegisterEvent::__construct()
Constructs an external registration event object.
Parameters
\Drupal\user\UserInterface $account: The Drupal user account.
string $provider: The name of the service providing external authentication.
string $authname: The unique, external authentication name provided by authentication provider.
mixed $data: Optional extra (serialized) data to store with the authname.
File
- src/
Event/ ExternalAuthRegisterEvent.php, line 56
Class
- ExternalAuthRegisterEvent
- Notify event listeners about an externalauth user registration.
Namespace
Drupal\externalauth\EventCode
public function __construct(UserInterface $account, $provider, $authname, $data = NULL) {
$this->account = $account;
$this->provider = $provider;
$this->authname = $authname;
$this->data = $data;
}