You are here

public function SimpleSearchForm::cleanupGetParams in Simple search form 8

Form #after_build callback.

Parameters

array $form: Form to process.

Return value

array Processed form.

File

src/Form/SimpleSearchForm.php, line 77

Class

SimpleSearchForm
SimpleSearchForm definition.

Namespace

Drupal\simple_search_form\Form

Code

public function cleanupGetParams(array $form) {

  // Remove all additional $_GET params from URL.
  $form['form_id']['#access'] = FALSE;
  $form['form_build_id']['#access'] = FALSE;
  return $form;
}