You are here

public function MobileNumberTfa::ready in Mobile Number 8

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

Determine if the plugin can run for the current TFA context.

Return value

bool True or False based on the checks performed.

Overrides TfaBasePlugin::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;
}