You are here

function user_email_verification_user_insert in User email verification 8

Same name and namespace in other branches
  1. 7 user_email_verification.module \user_email_verification_user_insert()

Implements hook_ENTITY_TYPE_insert().

File

./user_email_verification.module, line 223
User email verification hooks and alters.

Code

function user_email_verification_user_insert(UserInterface $user) {
  \Drupal::service('user_email_verification.service')
    ->createVerification($user, \Drupal::currentUser()
    ->hasPermission('administer users'));
}