public function SecuritytxtSignForm::submitForm in Security.txt 8
Form submission handler.
Parameters
array $form: An associative array containing the structure of the form.
\Drupal\Core\Form\FormStateInterface $form_state: The current state of the form.
Overrides ConfigFormBase::submitForm
File
- src/
Form/ SecuritytxtSignForm.php, line 96
Class
- SecuritytxtSignForm
- Upload the security.txt.sig file.
Namespace
Drupal\securitytxt\FormCode
public function submitForm(array &$form, FormStateInterface $form_state) {
$this->settings
->set('signature_text', $form_state
->getValue('signature_text'))
->save();
parent::submitForm($form, $form_state);
}