You are here

public function FormEntityAddForm::submitForm in Flexiform 8

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 FormEntityBaseForm::submitForm

File

src/Form/FormEntityAddForm.php, line 102

Class

FormEntityAddForm
Provides a form for adding new entity forms.

Namespace

Drupal\flexiform\Form

Code

public function submitForm(array &$form, FormStateInterface $form_state) {
  parent::submitForm($form, $form_state);
  $form_state
    ->set('selected_form_entity', FALSE);
}