You are here

public function SocialAuthUserFieldsEvent::__construct in Social Auth 8

Constructs a new SocialAuthUserFieldsEvent.

Parameters

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

string $plugin_id: The plugin Id dispatching this event.

File

src/Event/SocialAuthUserFieldsEvent.php, line 38

Class

SocialAuthUserFieldsEvent
Defines the user fields event.

Namespace

Drupal\social_auth\Event

Code

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