function FormTestVerticalTabsWithSummaryForm::submitForm

Same name and namespace in other branches
  1. main core/modules/system/tests/modules/form_test/src/Form/FormTestVerticalTabsWithSummaryForm.php \Drupal\form_test\Form\FormTestVerticalTabsWithSummaryForm::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

core/modules/system/tests/modules/form_test/src/Form/FormTestVerticalTabsWithSummaryForm.php, line 68

Class

FormTestVerticalTabsWithSummaryForm
Builds a simple form to test vertical-tabs form element with tab summaries.

Namespace

Drupal\form_test\Form

Code

public function submitForm(array &$form, FormStateInterface $form_state) : void {
  $this->messenger()
    ->addStatus($this->t('Form submitted.'));
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.