diff -u b/core/modules/path/src/Form/PathFilterForm.php b/core/modules/path/src/Form/PathFilterForm.php --- b/core/modules/path/src/Form/PathFilterForm.php +++ b/core/modules/path/src/Form/PathFilterForm.php @@ -28,11 +28,11 @@ '#open' => TRUE, '#attributes' => ['class' => ['container-inline']], ]; - $filter_type = array( + $filter_type = [ 'alias' => $this->t('Alias'), 'source' => $this->t('Source'), - ); - $form['basic']['type'] = array( + ]; + $form['basic']['type'] = [ '#type' => 'radios', '#options' => $filter_type, '#title' => $this->t('Choose your filter'), @@ -40,7 +40,7 @@ '#default_value' => !empty($type) ? $type : 'alias', '#maxlength' => 128, '#size' => 25, - ); + ]; $form['basic']['filter'] = [ '#type' => 'search', '#title' => $this->t('Path alias'), @@ -68,10 +68,10 @@ */ public function submitForm(array &$form, FormStateInterface $form_state) { $form_state->setRedirect('path.admin_overview_filter', [], [ - 'query' => array( + 'query' => [ 'search' => trim($form_state->getValue('filter')), 'type' => trim($form_state->getValue('type')), - ), + ], ]); }