You are here

public function ExportTermsForm::submitForm in Taxonomy Manager 8

Same name and namespace in other branches
  1. 2.0.x src/Form/ExportTermsForm.php \Drupal\taxonomy_manager\Form\ExportTermsForm::submitForm()

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/ExportTermsForm.php, line 86

Class

ExportTermsForm
Form for exporting given terms.

Namespace

Drupal\taxonomy_manager\Form

Code

public function submitForm(array &$form, FormStateInterface $form_state) {
  $taxonomy_vocabulary = $form_state
    ->getValue('voc');
  $form_state
    ->setRedirect('taxonomy_manager.admin_vocabulary', [
    'taxonomy_vocabulary' => $taxonomy_vocabulary
      ->id(),
  ]);
}