public function UserFieldsEvent::__construct in Social Auth 3.x
Same name and namespace in other branches
- 8.2 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 47
Class
- UserFieldsEvent
- Defines the user fields to be set in user creation.
Namespace
Drupal\social_auth\EventCode
public function __construct(array $user_fields, $plugin_id, SocialAuthUserInterface $user) {
$this->userFields = $user_fields;
$this->pluginId = $plugin_id;
$this->user = $user;
}