You are here

public function PollViewForm::back in Poll 8

Back to poll view submit function.

Parameters

array $form:

\Drupal\Core\Form\FormStateInterface $form_state:

File

src/Form/PollViewForm.php, line 328

Class

PollViewForm
Displays banned IP addresses.

Namespace

Drupal\poll\Form

Code

public function back(array $form, FormStateInterface $form_state) {
  $form_state
    ->set('show_results', FALSE);
  $form_state
    ->setRebuild(TRUE);
}