You are here

public function MobileNumberUtilInterface::registerVerificationCode in Mobile Number 8

Same name and namespace in other branches
  1. 2.0.x src/MobileNumberUtilInterface.php \Drupal\mobile_number\MobileNumberUtilInterface::registerVerificationCode()

Registers code for mobile number and returns it's token.

Parameters

\libphonenumber\PhoneNumber $mobile_number: Phone number object.

string $code: Access code.

Return value

string 43 character token.

1 method overrides MobileNumberUtilInterface::registerVerificationCode()
MobileNumberUtil::registerVerificationCode in src/MobileNumberUtil.php
Registers code for mobile number and returns it's token.

File

src/MobileNumberUtilInterface.php, line 254

Class

MobileNumberUtilInterface
Provides an interface for mobile number utility.

Namespace

Drupal\mobile_number

Code

public function registerVerificationCode(PhoneNumber $mobile_number, $code);