function EntityWizard::finish

Overrides FormWizardBase::finish

File

tests/modules/ctools_wizard_test/src/Wizard/EntityWizard.php, line 77

Class

EntityWizard

Namespace

Drupal\ctools_wizard_test\Wizard

Code

public function finish(array &$form, FormStateInterface $form_state) {
    $cached_values = $form_state->getTemporaryValue('wizard');
    $this->messenger()
        ->addMessage($this->t('Value One: @one', [
        '@one' => $cached_values['one'],
    ]));
    $this->messenger()
        ->addMessage($this->t('Value Two: @two', [
        '@two' => $cached_values['two'],
    ]));
    parent::finish($form, $form_state);
}