public function TfaRecoveryCodeSetup::submitSetupForm in Two-factor Authentication (TFA) 8
Submit the setup form.
Parameters
array $form: The configuration form array.
\Drupal\Core\Form\FormStateInterface $form_state: The current state of the form.
Return value
bool TRUE if no errors occur when saving the data.
Overrides TfaSetupInterface::submitSetupForm
File
- src/
Plugin/ TfaSetup/ TfaRecoveryCodeSetup.php, line 145
Class
- TfaRecoveryCodeSetup
- TFA Recovery Code Setup Plugin.
Namespace
Drupal\tfa\Plugin\TfaSetupCode
public function submitSetupForm(array $form, FormStateInterface $form_state) {
$this
->storeCodes($form_state
->getValue('recovery_codes'));
return TRUE;
}