You are here

public function MobileNumberUtil::isVerified in Mobile Number 2.0.x

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

Is the number already verified.

Parameters

\libphonenumber\PhoneNumber $mobile_number: Phone number object.

Return value

bool TRUE if verified.

Overrides MobileNumberUtilInterface::isVerified

File

src/MobileNumberUtil.php, line 335

Class

MobileNumberUtil
Turns a render array into a HTML string.

Namespace

Drupal\mobile_number

Code

public function isVerified(PhoneNumber $mobile_number) {
  return !empty($_SESSION['mobile_number_verification'][$this
    ->getCallableNumber($mobile_number)]['verified']);
}