function TranslateFilterForm::resetForm
Provides a submit handler for the reset button.
File
-
core/
modules/ locale/ src/ Form/ TranslateFilterForm.php, line 97
Class
- TranslateFilterForm
- Provides a filtered translation edit form.
Namespace
Drupal\locale\FormCode
public function resetForm(array &$form, FormStateInterface $form_state) {
$_SESSION['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.