janrain_capture.api.php in Janrain Registration 8
Same filename and directory in other branches
Janrain Capture Drupal API.
File
janrain_capture.api.phpView source
<?php
use Drupal\janrain_capture\User\JanrainUserProfile;
use Drupal\user\UserInterface;
/**
* @file
* Janrain Capture Drupal API.
*/
/**
* React to the authentication via Janrain.
*
* @param \Drupal\janrain_capture\User\JanrainUserProfile $profile
* The profile of a user on Janrain.
* @param \Drupal\user\UserInterface $user
* The user that has been authenticated.
* @param bool $is_new
* The state whether an authenticated user is new in Drupal.
*/
function hook_janrain_capture_user_authenticated(JanrainUserProfile $profile, UserInterface $user, bool $is_new) : void {
// The user is successfully signed in to Drupal using Janrain API.
}
Functions
Name![]() |
Description |
---|---|
hook_janrain_capture_user_authenticated | React to the authentication via Janrain. |