public function UserEmailVerification::buildExtendedVerificationUrl in User email verification 8
Build extended Email verification URL for requested user.
Parameters
\Drupal\user\UserInterface $user: User to create email verification URL for.
Return value
\Drupal\Core\Url Extended Email verification URL.
Overrides UserEmailVerificationInterface::buildExtendedVerificationUrl
File
- src/
UserEmailVerification.php, line 243
Class
- UserEmailVerification
- User email verification helper service.
Namespace
Drupal\user_email_verificationCode
public function buildExtendedVerificationUrl(UserInterface $user) {
$timestamp = $this->time
->getRequestTime();
$hashed_pass = $this
->buildHmac($user
->id(), $timestamp);
return Url::fromRoute('user_email_verification.verify_extended', [
'uid' => $user
->id(),
'timestamp' => $timestamp,
'hashed_pass' => $hashed_pass,
], [
'absolute' => TRUE,
]);
}