function openid_connect_user_insert in OpenID Connect / OAuth client 8
Same name and namespace in other branches
- 7 openid_connect.module \openid_connect_user_insert()
Implements hook_user_insert().
File
- ./
openid_connect.module, line 68 - Hook implementations of the OpenID Connect module.
Code
function openid_connect_user_insert(EntityInterface $entity) {
if (isset($entity->openid_connect_client) && isset($entity->openid_connect_sub)) {
\Drupal::service('openid_connect.authmap')
->createAssociation($entity, $entity->openid_connect_client, $entity->openid_connect_sub);
}
}