Redirects to confirmation form for the reset action.
public function submitReset(array &$form, FormStateInterface $form_state) { /** @var \Drupal\taxonomy\VocabularyInterface $vocabulary */ $vocabulary = $form_state->get([ 'taxonomy', 'vocabulary', ]); $form_state->setRedirectUrl($vocabulary->toUrl('reset-form')); }