function FormWizardBase::finish
Same name and namespace in other branches
- 8.x-3.x src/Wizard/FormWizardBase.php \Drupal\ctools\Wizard\FormWizardBase::finish()
Form submit handler for finalizing the wizard values.
If you need to generate an entity or save config or raw table data subsequent to your form wizard, this is the responsible method.
Parameters
array $form: Drupal form array.
\Drupal\Core\Form\FormStateInterface $form_state: The final form state of the wizard.
Overrides FormWizardInterface::finish
2 calls to FormWizardBase::finish()
- EntityFormWizardBase::finish in src/
Wizard/ EntityFormWizardBase.php - Form submit handler for finalizing the wizard values.
- WizardTest::finish in tests/
modules/ ctools_wizard_test/ src/ Wizard/ WizardTest.php - Form submit handler for finalizing the wizard values.
2 methods override FormWizardBase::finish()
- EntityFormWizardBase::finish in src/
Wizard/ EntityFormWizardBase.php - Form submit handler for finalizing the wizard values.
- WizardTest::finish in tests/
modules/ ctools_wizard_test/ src/ Wizard/ WizardTest.php - Form submit handler for finalizing the wizard values.
File
-
src/
Wizard/ FormWizardBase.php, line 331
Class
- FormWizardBase
- The base class for all form wizard.
Namespace
Drupal\ctools\WizardCode
public function finish(array &$form, FormStateInterface $form_state) {
$this->getTempstore()
->delete($this->getMachineName());
}