You are here

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

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

BeforeRedirectEvent constructor.

Parameters

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

string $plugin_id: The plugin Id dispatching this event.

string $destination: The destination where user will redirect after successful authentication.

File

src/Event/BeforeRedirectEvent.php, line 45

Class

BeforeRedirectEvent
Dispatched before user is redirected to provider for authentication.

Namespace

Drupal\social_auth\Event

Code

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