You are here

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

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

Generates a random numeric string.

Parameters

int $length: Number of digits.

Return value

string Code in length of $length.

1 method overrides MobileNumberUtilInterface::generateVerificationCode()
MobileNumberUtil::generateVerificationCode in src/MobileNumberUtil.php
Generates a random numeric string.

File

src/MobileNumberUtilInterface.php, line 185

Class

MobileNumberUtilInterface
Provides an interface for mobile number utility.

Namespace

Drupal\mobile_number

Code

public function generateVerificationCode($length = 4);