public function MobileNumberUtilInterface::codeHash in Mobile Number 8
Same name and namespace in other branches
- 2.0.x 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_numberCode
public function codeHash(PhoneNumber $mobile_number, $token, $code);