public function BeforeRedirectEvent::__construct in Social Auth 8.2
Same name and namespace in other branches
- 3.x 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 46
Class
- BeforeRedirectEvent
- Dispatched before user is redirected to provider for authentication.
Namespace
Drupal\social_auth\EventCode
public function __construct(SocialAuthDataHandler $data_handler, $plugin_id, $destination = NULL) {
$this->dataHandler = $data_handler;
$this->pluginId = $plugin_id;
$this->destination = $destination;
}