You are here

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

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

Send verification code to mobile number.

Parameters

\libphonenumber\PhoneNumber $mobile_number: Phone number object.

string $message: Drupal translatable string.

string $code: Code to send.

array $token_data: Token variables to be used with token_replace().

Return value

bool Success flag.

1 method overrides MobileNumberUtilInterface::sendVerification()
MobileNumberUtil::sendVerification in src/MobileNumberUtil.php
Send verification code to mobile number.

File

src/MobileNumberUtilInterface.php, line 230

Class

MobileNumberUtilInterface
Provides an interface for mobile number utility.

Namespace

Drupal\mobile_number

Code

public function sendVerification(PhoneNumber $mobile_number, $message, $code, $token_data = []);