public function ModuleActivitiesForm::submitForm in Opigno module 8
Same name and namespace in other branches
- 3.x src/Form/ModuleActivitiesForm.php \Drupal\opigno_module\Form\ModuleActivitiesForm::submitForm()
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 FormInterface::submitForm
File
- src/
Form/ ModuleActivitiesForm.php, line 262
Class
- ModuleActivitiesForm
- Class ModuleActivitiesForm.
Namespace
Drupal\opigno_module\FormCode
public function submitForm(array &$form, FormStateInterface $form_state) {
// Display result.
foreach ($form_state
->getValues() as $key => $value) {
\Drupal::messenger()
->addMessage($key . ': ' . $value);
}
}