You are here

public function PollViewForm::result in Poll 8

View vote results submit function.

Parameters

array $form:

\Drupal\Core\Form\FormStateInterface $form_state:

File

src/Form/PollViewForm.php, line 317

Class

PollViewForm
Displays banned IP addresses.

Namespace

Drupal\poll\Form

Code

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