TranslateFilterForm::resetForm

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');
}
doc_Drupal
2016-10-29 09:49:10
Comments
Leave a Comment

Please login to continue.