You are here

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

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

Verifies input code matches code sent to user.

Parameters

\libphonenumber\PhoneNumber $mobile_number: Phone number object.

string $code: Input code.

string|null $token: Verification token, if verification code was not sent in this session.

Return value

bool TRUE if matches

1 method overrides MobileNumberUtilInterface::verifyCode()
MobileNumberUtil::verifyCode in src/MobileNumberUtil.php
Verifies input code matches code sent to user.

File

src/MobileNumberUtilInterface.php, line 213

Class

MobileNumberUtilInterface
Provides an interface for mobile number utility.

Namespace

Drupal\mobile_number

Code

public function verifyCode(PhoneNumber $mobile_number, $code, $token = NULL);