You are here

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

Same name and namespace in other branches
  1. 8.2 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 46

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;
}