You are here

public function FlagAddPageForm::submitForm in Flag 8.4

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

src/Form/FlagAddPageForm.php, line 98

Class

FlagAddPageForm
Provides the flag add page.

Namespace

Drupal\flag\Form

Code

public function submitForm(array &$form, FormStateInterface $form_state) {
  $form_state
    ->setRedirect('entity.flag.add_form', [
    'entity_type' => $form_state
      ->getValue('flag_entity_type'),
  ]);
}