public function PathFilterForm::submitForm in Drupal 8
Same name and namespace in other branches
- 9 core/modules/path/src/Form/PathFilterForm.php \Drupal\path\Form\PathFilterForm::submitForm()
- 10 core/modules/path/src/Form/PathFilterForm.php \Drupal\path\Form\PathFilterForm::submitForm()
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/ path/ src/ Form/ PathFilterForm.php, line 58
Class
- PathFilterForm
- Provides the path admin overview filter form.
Namespace
Drupal\path\FormCode
public function submitForm(array &$form, FormStateInterface $form_state) {
$form_state
->setRedirect('entity.path_alias.collection', [], [
'query' => [
'search' => trim($form_state
->getValue('filter')),
],
]);
}