You are here

public function MobileNumberTfa::ready in Mobile Number 7

Determines whether TFA is applicable to the account.

Return value

bool Is applicable.

Overrides TfaBasePlugin::ready

File

src/MobileNumberTfa.php, line 56
Contains MobileNumberTfa.

Class

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

Code

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