OverviewTerms::submitReset

public OverviewTerms::submitReset(array &$form, FormStateInterface $form_state)

Redirects to confirmation form for the reset action.

File

core/modules/taxonomy/src/Form/OverviewTerms.php, line 462

Class

OverviewTerms
Provides terms overview form for a taxonomy vocabulary.

Namespace

Drupal\taxonomy\Form

Code

public function submitReset(array &$form, FormStateInterface $form_state) {
  /** @var $vocabulary \Drupal\taxonomy\VocabularyInterface */
  $vocabulary = $form_state->get(['taxonomy', 'vocabulary']);
  $form_state->setRedirectUrl($vocabulary->urlInfo('reset-form'));
}
doc_Drupal
2016-10-29 09:32:50
Comments
Leave a Comment

Please login to continue.