You are here

public function FormWizardBase::finish in Chaos Tool Suite (ctools) 8.3

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 320

Class

FormWizardBase
The base class for all form wizard.

Namespace

Drupal\ctools\Wizard

Code

public function finish(array &$form, FormStateInterface $form_state) {
  $this
    ->getTempstore()
    ->delete($this
    ->getMachineName());
}