You are here

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

DomainPathFilterForm

Namespace

Drupal\domain_path\Form

Code

public function submitForm(array &$form, FormStateInterface $form_state) {
  $form_state
    ->setRedirect('entity.domain_path.collection', [], [
    'query' => [
      'search' => trim($form_state
        ->getValue('filter')),
    ],
  ]);
}