You are here

function CourseObjectNode::getNode in Course 8.3

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

Get this node object's node.

Return value

NodeInterface

7 calls to CourseObjectNode::getNode()
CourseObjectNode::freeze in modules/course_content/src/Course/Object/CourseObjectNode.php
Freeze data to persist over cloning/exporting.
CourseObjectNode::getEditUrl in modules/course_content/src/Course/Object/CourseObjectNode.php
Get the URL to edit this course object, if any.
CourseObjectNode::getTakeUrl in modules/course_content/src/Course/Object/CourseObjectNode.php
Get the URL to take this course object, if any.
CourseObjectNode::getTitle in modules/course_content/src/Course/Object/CourseObjectNode.php
Get the object title, or return this object's node's title if the option is set.
CourseObjectNode::getViewUrl in modules/course_content/src/Course/Object/CourseObjectNode.php
Get the URL to view this course object, if any.

... See full list

File

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

Class

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

Namespace

Drupal\course_content\Course\Object

Code

function getNode() {
  return \Drupal\node\Entity\Node::load($this
    ->get('instance')
    ->getString());
}