public function HackedSettingsForm::submitForm in Hacked! 8.2
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/ HackedSettingsForm.php, line 64
Class
- HackedSettingsForm
- Configure locale settings for this site.
Namespace
Drupal\hacked\FormCode
public function submitForm(array &$form, FormStateInterface $form_state) {
// Clear the Hacked! report cache.
// cache_clear_all('hacked:full-report', HACKED_CACHE_TABLE);
$values = $form_state
->getValues();
$config = $this
->config('hacked.settings');
$config
->set('selected_file_hasher', $values['selected_file_hasher'])
->save();
parent::submitForm($form, $form_state);
}