public function Poll::isOpen in Poll 8
Returns if the poll is open.
Return value
bool TRUE if the poll is open.
Overrides PollInterface::isOpen
File
- src/
Entity/ Poll.php, line 140
Class
- Poll
- Defines the poll entity class.
Namespace
Drupal\poll\EntityCode
public function isOpen() {
return (bool) $this
->get('status')->value;
}