You are here

public function UserEvent::__construct in Social Auth 8.2

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

UserEvent constructor.

Parameters

\Drupal\user\UserInterface $user: The user.

string $plugin_id: The plugin Id dispatching this event.

\Drupal\social_auth\User\SocialAuthUserInterface|null $social_auth_user: The user's data passed by Social Auth.

File

src/Event/UserEvent.php, line 47

Class

UserEvent
Dispatched when user is created or logged in through Social Auth.

Namespace

Drupal\social_auth\Event

Code

public function __construct(UserInterface $user, $plugin_id, SocialAuthUserInterface $social_auth_user = NULL) {
  $this->user = $user;
  $this->pluginId = $plugin_id;
  $this->socialAuthUser = $social_auth_user;
}