You are here

public function UserFieldsEvent::__construct in Social Auth 8.2

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

UserFieldsEvent constructor.

Parameters

array $user_fields: Initial user fields to populate the newly created user.

string $plugin_id: The plugin Id dispatching this event.

\Drupal\social_auth\User\SocialAuthUserInterface $user: The data of the user to be created.

File

src/Event/UserFieldsEvent.php, line 48

Class

UserFieldsEvent
Defines the user fields to be set in user creation.

Namespace

Drupal\social_auth\Event

Code

public function __construct(array $user_fields, $plugin_id, SocialAuthUserInterface $user) {
  $this->userFields = $user_fields;
  $this->pluginId = $plugin_id;
  $this->user = $user;
}