public function DomainPathFilterForm::submitForm in Domain Path 8
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 PathFilterForm::submitForm
File
- src/
Form/ DomainPathFilterForm.php, line 13
Class
Namespace
Drupal\domain_path\FormCode
public function submitForm(array &$form, FormStateInterface $form_state) {
$form_state
->setRedirect('entity.domain_path.collection', [], [
'query' => [
'search' => trim($form_state
->getValue('filter')),
],
]);
}