You are here

public function PathFilterForm::submitForm in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 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 62
Contains \Drupal\path\Form\PathFilterForm.

Class

PathFilterForm
Provides the path admin overview filter form.

Namespace

Drupal\path\Form

Code

public function submitForm(array &$form, FormStateInterface $form_state) {
  $form_state
    ->setRedirect('path.admin_overview_filter', array(), array(
    'query' => array(
      'search' => trim($form_state
        ->getValue('filter')),
    ),
  ));
}