public function QuizResultAnswerEntityTrait::isAnswered in Quiz 6.x
Same name and namespace in other branches
- 8.6 src/Entity/QuizResultAnswerEntityTrait.php \Drupal\quiz\Entity\QuizResultAnswerEntityTrait::isAnswered()
- 8.5 src/Entity/QuizResultAnswerEntityTrait.php \Drupal\quiz\Entity\QuizResultAnswerEntityTrait::isAnswered()
File
- src/
Entity/ QuizResultAnswerEntityTrait.php, line 221
Class
- QuizResultAnswerEntityTrait
- Each question type must store its own response data and be able to calculate a score for that data.
Namespace
Drupal\quiz\EntityCode
public function isAnswered() : bool {
return (bool) (!$this
->get('answer_timestamp')
->isEmpty());
}