public function ClozeQuestion::entityBuilder in Quiz 8.4
Implementation of entityBuilder
File
- question_types/
cloze/ lib/ Drupal/ cloze/ ClozeQuestion.php, line 74 - The main classes for the multichoice question type.
Class
- ClozeQuestion
- Extension of QuizQuestion.
Namespace
Drupal\clozeCode
public function entityBuilder(&$form_state) {
$this->node->learning_mode = $form_state['values']['learning_mode'];
$this->node->add_directly = $form_state['values']['add_directly'];
}