You are here

public function Poll::setQuestion in Poll 8

Sets the question for the poll.

Parameters

string $question: The short title of the feed.

Return value

\Drupal\poll\PollInterface The class instance that this method is called on.

Overrides PollInterface::setQuestion

File

src/Entity/Poll.php, line 57

Class

Poll
Defines the poll entity class.

Namespace

Drupal\poll\Entity

Code

public function setQuestion($question) {
  $this
    ->set('question', $question);
  return $this;
}