public function QuizQuestion::__construct in Quiz 8.4
QuizQuestion constructor stores the node object.
Parameters
$node: The node object
1 call to QuizQuestion::__construct()
- MatchingQuestion::__construct in question_types/
matching/ lib/ Drupal/ matching/ MatchingQuestion.php - Constructor
1 method overrides QuizQuestion::__construct()
- MatchingQuestion::__construct in question_types/
matching/ lib/ Drupal/ matching/ MatchingQuestion.php - Constructor
File
- question_types/
quiz_question/ lib/ Drupal/ quiz_question/ QuizQuestion.php, line 66 - Classes used in the Quiz Question module.
Class
- QuizQuestion
- A base implementation of a quiz_question, adding a layer of abstraction between the node API, quiz API and the question types.
Namespace
Drupal\quiz_questionCode
public function __construct($node) {
$this->node = $node;
}