interface TfaValidationPluginInterface in Two-factor Authentication (TFA) 7.2
Interface TfaValidationPluginInterface.
Validation plugins interact with the Tfa form processes to provide code entry and validate submitted codes.
Hierarchy
- interface \TfaValidationPluginInterface
Expanded class hierarchy of TfaValidationPluginInterface
All classes that implement TfaValidationPluginInterface
2 string references to 'TfaValidationPluginInterface'
- tfa_admin_settings in ./
tfa.admin.inc - Admin settings form.
- _tfa_class_types in ./
tfa.admin.inc - Get human-readable types.
File
- ./
tfa.inc, line 766 - TFA module classes.
View source
interface TfaValidationPluginInterface {
/**
* Get TFA process form from plugin.
*
* @param array $form
* The form array structure.
* @param array $form_state
* The current form state array.
*
* @return array
* Form API array.
*/
public function getForm(array $form, array &$form_state);
/**
* Validate form.
*
* @param array $form
* The form array structure.
* @param array $form_state
* The current form state array.
*
* @return bool
* Whether form passes validation or not.
*/
public function validateForm(array $form, array &$form_state);
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
TfaValidationPluginInterface:: |
public | function | Get TFA process form from plugin. | 3 |
TfaValidationPluginInterface:: |
public | function | Validate form. | 3 |