You are here

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\matching

Code

public function __construct($node) {
  parent::__construct($node);
  if (empty($this->node->match)) {
    $this->node->match = array();
  }
}