You are here

public function MobileNumberTfa::ready in Mobile Number 2.0.x

Same name and namespace in other branches
  1. 8 src/Plugin/TfaValidation/MobileNumberTfa.php \Drupal\mobile_number\Plugin\TfaValidation\MobileNumberTfa::ready()

File

src/Plugin/TfaValidation/MobileNumberTfa.php, line 80
MobileNumberTfa.php

Class

MobileNumberTfa
Class MobileNumberTfa is a validation and sending plugin for TFA.

Namespace

Drupal\mobile_number\Plugin\TfaValidation

Code

public function ready() {
  return $this->mobileNumberUtil
    ->tfaAccountNumber($this->context['uid']) ? TRUE : FALSE;
}