You are here

public function TfaContext::isReady in Two-factor Authentication (TFA) 8

Check whether the Validation Plugin is set and ready for use.

Return value

bool TRUE if Validation Plugin exists and is ready for use.

Overrides TfaContextInterface::isReady

File

src/TfaContext.php, line 149

Class

TfaContext
Provide context for the current login attempt.

Namespace

Drupal\tfa

Code

public function isReady() {
  return isset($this->tfaValidationPlugin) && $this->tfaValidationPlugin
    ->ready();
}