You are here

public function QuizQuestionEntityTrait::getNodeView in Quiz 8.6

Same name and namespace in other branches
  1. 8.5 src/Entity/QuizQuestionEntityTrait.php \Drupal\quiz\Entity\QuizQuestionEntityTrait::getNodeView()

Retrieve information relevant for viewing the node.

(This data is generally added to the node's extra field.)

Return value

array Content array.

4 calls to QuizQuestionEntityTrait::getNodeView()
LongAnswerQuestion::getNodeView in question_types/quiz_long_answer/src/Plugin/quiz/QuizQuestion/LongAnswerQuestion.php
Implementation of getNodeView().
MultichoiceQuestion::getNodeView in question_types/quiz_multichoice/src/Plugin/quiz/QuizQuestion/MultichoiceQuestion.php
Implementation of getNodeView().
ShortAnswerQuestion::getNodeView in question_types/quiz_short_answer/src/Plugin/quiz/QuizQuestion/ShortAnswerQuestion.php
Implementation of getNodeView().
TrueFalseQuestion::getNodeView in question_types/quiz_truefalse/src/Plugin/quiz/QuizQuestion/TrueFalseQuestion.php
Retrieve information relevant for viewing the node.
4 methods override QuizQuestionEntityTrait::getNodeView()
LongAnswerQuestion::getNodeView in question_types/quiz_long_answer/src/Plugin/quiz/QuizQuestion/LongAnswerQuestion.php
Implementation of getNodeView().
MultichoiceQuestion::getNodeView in question_types/quiz_multichoice/src/Plugin/quiz/QuizQuestion/MultichoiceQuestion.php
Implementation of getNodeView().
ShortAnswerQuestion::getNodeView in question_types/quiz_short_answer/src/Plugin/quiz/QuizQuestion/ShortAnswerQuestion.php
Implementation of getNodeView().
TrueFalseQuestion::getNodeView in question_types/quiz_truefalse/src/Plugin/quiz/QuizQuestion/TrueFalseQuestion.php
Retrieve information relevant for viewing the node.

File

src/Entity/QuizQuestionEntityTrait.php, line 129

Class

QuizQuestionEntityTrait
A trait all Quiz question strongly typed entity bundles must use.

Namespace

Drupal\quiz\Entity

Code

public function getNodeView() {
  $content = array();
  return $content;
}