You are here

public function MobileNumberTfa::getPluginContext 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::getPluginContext()

Return context for this plugin.

File

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

Class

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

Namespace

Drupal\mobile_number\Plugin\TfaValidation

Code

public function getPluginContext() {
  return [
    'code' => $this->code,
    'verification_token' => !empty($this->verificationToken) ? $this->verificationToken : '',
  ];
}