function ConfigsList::submitForm

Same name in other branches
  1. 4.x src/Form/ConfigsList.php \Drupal\devel\Form\ConfigsList::submitForm()

Overrides FormInterface::submitForm

File

src/Form/ConfigsList.php, line 98

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) : void {
    $filter = $form_state->getValue('name');
    $form_state->setRedirectUrl(Url::FromRoute('devel.configs_list', [
        'filter' => Html::escape($filter),
    ]));
}