You are here

public function FailedAuthenticationEvent::__construct in Social Auth 3.x

Same name and namespace in other branches
  1. 8.2 src/Event/FailedAuthenticationEvent.php \Drupal\social_auth\Event\FailedAuthenticationEvent::__construct()

FailedAuthenticationEvent constructor.

Parameters

\Drupal\social_auth\SocialAuthDataHandler $data_handler: The Social Auth data handler.

string $plugin_id: The plugin Id dispatching this event.

string $error: The error string.

File

src/Event/FailedAuthenticationEvent.php, line 53

Class

FailedAuthenticationEvent
Dispatched when user authentication fails in provider.

Namespace

Drupal\social_auth\Event

Code

public function __construct(SocialAuthDataHandler $data_handler, $plugin_id, $error = NULL) {
  $this->dataHandler = $data_handler;
  $this->pluginId = $plugin_id;
  $this->error = $error;
}