public function MobileNumberUtilInterface::checkFlood in Mobile Number 8
Same name and namespace in other branches
- 2.0.x src/MobileNumberUtilInterface.php \Drupal\mobile_number\MobileNumberUtilInterface::checkFlood()
Checks whether there were too many verifications attempted with the current number.
Parameters
\libphonenumber\PhoneNumber $mobile_number: Phone number object.
string $type: Flood type, 'sms' or 'verification'.
Return value
bool FALSE for too many attempts on this mobile number, TRUE otherwise.
1 method overrides MobileNumberUtilInterface::checkFlood()
- MobileNumberUtil::checkFlood in src/
MobileNumberUtil.php - Checks whether there were too many verifications attempted with the current number.
File
- src/
MobileNumberUtilInterface.php, line 163
Class
- MobileNumberUtilInterface
- Provides an interface for mobile number utility.
Namespace
Drupal\mobile_numberCode
public function checkFlood(PhoneNumber $mobile_number, $type = 'verification');