public TranslateFilterForm::submitForm(array &$form, FormStateInterface $form_state)
Form submission handler.
Parameters
array $form: An associative array containing the structure of the form.
\Drupal\Core\Form\FormStateInterface $form_state: The current state of the form.
Overrides FormInterface::submitForm
File
- core/modules/locale/src/Form/TranslateFilterForm.php, line 82
Class
- TranslateFilterForm
- Provides a filtered translation edit form.
Namespace
Drupal\locale\Form
Code
1 2 3 4 5 6 7 8 9 | public function submitForm( array & $form , FormStateInterface $form_state ) { $filters = $this ->translateFilters(); foreach ( $filters as $name => $filter ) { if ( $form_state ->hasValue( $name )) { $_SESSION [ 'locale_translate_filter' ][ $name ] = $form_state ->getValue( $name ); } } $form_state ->setRedirect( 'locale.translate_page' ); } |
Please login to continue.