You are here

public function MoveTermsForm::submitForm in Taxonomy Manager 2.0.x

Same name and namespace in other branches
  1. 8 src/Form/MoveTermsForm.php \Drupal\taxonomy_manager\Form\MoveTermsForm::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/MoveTermsForm.php, line 87

Class

MoveTermsForm
Form for deleting given terms.

Namespace

Drupal\taxonomy_manager\Form

Code

public function submitForm(array &$form, FormStateInterface $form_state) {
  $taxonomy_vocabulary = $form_state
    ->getValue('voc');
  $this
    ->messenger()
    ->addError($this
    ->t('Move operation not yet implemented.'));
  $form_state
    ->setRedirect('taxonomy_manager.admin_vocabulary', [
    'taxonomy_vocabulary' => $taxonomy_vocabulary
      ->id(),
  ]);
}