public function ExportTermsMiniForm::submitForm in Taxonomy Manager 2.0.x
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/ ExportTermsMiniForm.php, line 85
Class
- ExportTermsMiniForm
- Form for exporting given terms.
Namespace
Drupal\taxonomy_manager\FormCode
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(),
]);
}