public function MatchingQuestion::__construct in Quiz 8.4
Constructor
Parameters
$node: matching node
Overrides QuizQuestion::__construct
File
- question_types/
matching/ lib/ Drupal/ matching/ MatchingQuestion.php, line 38 - The main classes for the matching question type.
Class
- MatchingQuestion
- Extension of QuizQuestion.
Namespace
Drupal\matchingCode
public function __construct($node) {
parent::__construct($node);
if (empty($this->node->match)) {
$this->node->match = array();
}
}