public function LongAnswerQuestion::entityBuilder in Quiz 8.4
Implementation of entityBuilder
File
- question_types/
long_answer/ lib/ Drupal/ long_answer/ LongAnswerQuestion.php, line 55 - Long answer classes.
Class
- LongAnswerQuestion
- Extension of QuizQuestion.
Namespace
Drupal\long_answerCode
public function entityBuilder(&$form_state) {
$this->node->rubric = $form_state['values']['rubric'];
$this->node->add_directly = $form_state['values']['add_directly'];
}