You are here

public function Referers::submitForm in Visitors 8.2

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 DateFilter::submitForm

File

src/Form/Referers.php, line 46

Class

Referers

Namespace

Drupal\visitors\Form

Code

public function submitForm(array &$form, FormStateInterface $form_state) {
  parent::submitForm($form, $form_state);
  $_SESSION['referer_type'] = $form_state
    ->getValues()['referer_type'];
}