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