You are here

public function PollViewForm::setPoll in Poll 8

Set the Poll of this form.

Parameters

\Drupal\poll\PollInterface $poll: The poll that will be set in the form.

File

src/Form/PollViewForm.php, line 46

Class

PollViewForm
Displays banned IP addresses.

Namespace

Drupal\poll\Form

Code

public function setPoll(PollInterface $poll) {
  $this->poll = $poll;
}