function janrain_capture_user_view in Janrain Registration 8
Same name and namespace in other branches
- 7.4 janrain_capture.module \janrain_capture_user_view()
- 7.2 janrain_capture.module \janrain_capture_user_view()
- 7.3 includes/janrain_capture.fancybox.inc \janrain_capture_user_view()
Implements hook_ENTITY_TYPE_view().
@internal
File
- ./
janrain_capture.module, line 51 - Janrain Capture.
Code
function janrain_capture_user_view(array &$build, UserInterface $user) : void {
if (\Drupal::service('janrain_capture.capture_api')
->isJanrainAccount($user)) {
$build += \Drupal::service('janrain_capture.markup_builder')
->getScreenRenderArray('public-profile');
}
}