You are here

public function GdprFieldFilterForm::resetForm in General Data Protection Regulation 3.0.x

Same name and namespace in other branches
  1. 8.2 modules/gdpr_fields/src/Form/GdprFieldFilterForm.php \Drupal\gdpr_fields\Form\GdprFieldFilterForm::resetForm()
  2. 8 modules/gdpr_fields/src/Form/GdprFieldFilterForm.php \Drupal\gdpr_fields\Form\GdprFieldFilterForm::resetForm()

Form submission handler to reset filters.

Parameters

array $form: An associative array containing the structure of the form.

\Drupal\Core\Form\FormStateInterface $form_state: The current state of the form.

File

modules/gdpr_fields/src/Form/GdprFieldFilterForm.php, line 143

Class

GdprFieldFilterForm
Filter form for GDPR field list page.

Namespace

Drupal\gdpr_fields\Form

Code

public function resetForm(array &$form, FormStateInterface $form_state) {
  $form_state
    ->setRedirect('gdpr_fields.fields_list');
}