You are here

public static function CourseObjectNode::getNodeInstances in Course 3.x

Same name and namespace in other branches
  1. 8.3 modules/course_content/src/Course/Object/CourseObjectNode.php \Drupal\course_content\Course\Object\CourseObjectNode::getNodeInstances()
  2. 8.2 modules/course_content/src/Course/Object/CourseObjectNode.php \Drupal\course_content\Course\Object\CourseObjectNode::getNodeInstances()

When passed a node, this method should return the "parent" nodes that are contained in a course outline.

For example, if the passed node was a question in a quiz, all the quiz node IDs should be returned.

1 call to CourseObjectNode::getNodeInstances()
CourseObjectNode::context in modules/course_content/src/Course/Object/CourseObjectNode.php
Course context handler callback.
1 method overrides CourseObjectNode::getNodeInstances()
CourseObjectBook::getNodeInstances in modules/course_book/src/Plugin/course/CourseObject/CourseObjectBook.php
Course node context handler callback.

File

modules/course_content/src/Course/Object/CourseObjectNode.php, line 67

Class

CourseObjectNode
A course object that uses a node as a base.

Namespace

Drupal\course_content\Course\Object

Code

public static function getNodeInstances($node) {
  return array();
}