function TranslateFilterForm::resetForm
Same name in other branches
- 9 core/modules/locale/src/Form/TranslateFilterForm.php \Drupal\locale\Form\TranslateFilterForm::resetForm()
- 8.9.x core/modules/locale/src/Form/TranslateFilterForm.php \Drupal\locale\Form\TranslateFilterForm::resetForm()
- 10 core/modules/locale/src/Form/TranslateFilterForm.php \Drupal\locale\Form\TranslateFilterForm::resetForm()
Provides a submit handler for the reset button.
File
-
core/
modules/ locale/ src/ Form/ TranslateFilterForm.php, line 100
Class
- TranslateFilterForm
- Provides a filtered translation edit form.
Namespace
Drupal\locale\FormCode
public function resetForm(array &$form, FormStateInterface $form_state) {
$this->getRequest()
->getSession()
->remove('locale_translate_filter');
$form_state->setRedirect('locale.translate_page');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.