You are here

public function ConfigsList::submitForm in Devel 8.3

Same name and namespace in other branches
  1. 8 src/Form/ConfigsList.php \Drupal\devel\Form\ConfigsList::submitForm()
  2. 8.2 src/Form/ConfigsList.php \Drupal\devel\Form\ConfigsList::submitForm()
  3. 4.x src/Form/ConfigsList.php \Drupal\devel\Form\ConfigsList::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

src/Form/ConfigsList.php, line 81

Class

ConfigsList
Form that displays all the config variables to edit them.

Namespace

Drupal\devel\Form

Code

public function submitForm(array &$form, FormStateInterface $form_state) {
  $filter = $form_state
    ->getValue('name');
  $form_state
    ->setRedirectUrl(Url::FromRoute('devel.configs_list', [
    'filter' => Html::escape($filter),
  ]));
}