You are here

public function OpignoGroupManagedLink::getParentContent in Opigno group manager 3.x

Same name and namespace in other branches
  1. 8 src/Entity/OpignoGroupManagedLink.php \Drupal\opigno_group_manager\Entity\OpignoGroupManagedLink::getParentContent()

Returns parent content.

Return value

OpignoGroupManagedContent The parent learning path content object.

File

src/Entity/OpignoGroupManagedLink.php, line 141

Class

OpignoGroupManagedLink
Defines the Opigno Group Link entity.

Namespace

Drupal\opigno_group_manager\Entity

Code

public function getParentContent() {
  return $this
    ->get('parent_content_id')->entity;
}