You are here

public function ExternalAuthLoginEvent::__construct in External Authentication 8

Same name and namespace in other branches
  1. 2.0.x src/Event/ExternalAuthLoginEvent.php \Drupal\externalauth\Event\ExternalAuthLoginEvent::__construct()

Constructs an external login 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.

File

src/Event/ExternalAuthLoginEvent.php, line 47

Class

ExternalAuthLoginEvent
Notify event listeners about an externalauth user login.

Namespace

Drupal\externalauth\Event

Code

public function __construct(UserInterface $account, $provider, $authname) {
  $this->account = $account;
  $this->provider = $provider;
  $this->authname = $authname;
}