public function PollChoiceInterface::setChoice in Poll 8
Sets the choice for the poll choice.
Parameters
string $choice: The poll choice.
Return value
static The class instance that this method is called on.
1 method overrides PollChoiceInterface::setChoice()
- PollChoice::setChoice in src/
Entity/ PollChoice.php - Sets the choice for the poll choice.
File
- src/
PollChoiceInterface.php, line 21
Class
- PollChoiceInterface
- Provides an interface defining an poll entity.
Namespace
Drupal\pollCode
public function setChoice($choice);