public function User_pruneSettingsForm::submitForm in User Prune 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/ User_pruneSettingsForm.php, line 189 - Contains \Drupal\user_prune\Form
Class
- User_pruneSettingsForm
- Configure Userprune settings for this site.
Namespace
Drupal\User_prune\FormCode
public function submitForm(array &$form, FormStateInterface $form_state) {
foreach ($form_state
->getValues() as $key => $value) {
\Drupal::state()
->set($key, $value);
}
foreach ($form_state
->getValues() as $key => $value) {
drupal_set_message($key . ': ' . $value);
}
}