function OverviewTerms::submitReset
Same name in other branches
- 8.9.x core/modules/taxonomy/src/Form/OverviewTerms.php \Drupal\taxonomy\Form\OverviewTerms::submitReset()
- 10 core/modules/taxonomy/src/Form/OverviewTerms.php \Drupal\taxonomy\Form\OverviewTerms::submitReset()
- 11.x core/modules/taxonomy/src/Form/OverviewTerms.php \Drupal\taxonomy\Form\OverviewTerms::submitReset()
Redirects to confirmation form for the reset action.
File
-
core/
modules/ taxonomy/ src/ Form/ OverviewTerms.php, line 596
Class
- OverviewTerms
- Provides terms overview form for a taxonomy vocabulary.
Namespace
Drupal\taxonomy\FormCode
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'));
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.