public TranslateFilterForm::resetForm(array &$form, FormStateInterface $form_state)
Provides a submit handler for the reset button.
File
- core/modules/locale/src/Form/TranslateFilterForm.php, line 95
Class
- TranslateFilterForm
- Provides a filtered translation edit form.
Namespace
Drupal\locale\Form
Code
public function resetForm(array &$form, FormStateInterface $form_state) { $_SESSION['locale_translate_filter'] = array(); $form_state->setRedirect('locale.translate_page'); }
Please login to continue.