public function MobileNumberUtilInterface::generateVerificationCode in Mobile Number 8
Same name and namespace in other branches
- 2.0.x 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_numberCode
public function generateVerificationCode($length = 4);