You are here

public function MobileNumberUtilInterface::codeHash in Mobile Number 2.0.x

Same name and namespace in other branches
  1. 8 src/MobileNumberUtilInterface.php \Drupal\mobile_number\MobileNumberUtilInterface::codeHash()

Generate hash given token and code.

Parameters

\libphonenumber\PhoneNumber $mobile_number: Phone number object.

string $token: Token.

string $code: Verification code.

Return value

string Hash string.

1 method overrides MobileNumberUtilInterface::codeHash()
MobileNumberUtil::codeHash in src/MobileNumberUtil.php
Generate hash given token and code.

File

src/MobileNumberUtilInterface.php, line 269

Class

MobileNumberUtilInterface
Provides an interface for mobile number utility.

Namespace

Drupal\mobile_number

Code

public function codeHash(PhoneNumber $mobile_number, $token, $code);