You are here

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

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

Gets token generated if verification code was sent.

Parameters

\libphonenumber\PhoneNumber $mobile_number: Phone number object.

Return value

string|null A drupal token (43 characters).

1 method overrides MobileNumberUtilInterface::getToken()
MobileNumberUtil::getToken in src/MobileNumberUtil.php
Gets token generated if verification code was sent.

File

src/MobileNumberUtilInterface.php, line 174

Class

MobileNumberUtilInterface
Provides an interface for mobile number utility.

Namespace

Drupal\mobile_number

Code

public function getToken(PhoneNumber $mobile_number);