function ExampleConfigEntityGeneralForm::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
- 
              tests/modules/ ctools_wizard_test/ src/ Form/ ExampleConfigEntityGeneralForm.php, line 35 
Class
- ExampleConfigEntityGeneralForm
- Class ExampleConfigEntityForm.
Namespace
Drupal\ctools_wizard_test\FormCode
public function submitForm(array &$form, FormStateInterface $form_state) {
  $cached_values = $form_state->getTemporaryValue('wizard');
  /** @var \Drupal\ctools_wizard_test\Entity\ExampleConfigEntity $page */
  $config_entity = $cached_values['ctools_wizard_test_config_entity'];
  $config_entity->set('id', $form_state->getValue('id'));
  $config_entity->set('label', $form_state->getValue('label'));
}