You are here

public function OpignoGroupManagedLink::setParentContent in Opigno group manager 8

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

Sets parent content.

Parameters

OpignoGroupManagedContent $parent_content: The parent learning path content object.

Return value

$this

File

src/Entity/OpignoGroupManagedLink.php, line 153

Class

OpignoGroupManagedLink
Defines the Opigno Group Link entity.

Namespace

Drupal\opigno_group_manager\Entity

Code

public function setParentContent(OpignoGroupManagedContent $parent_content) {
  $this
    ->setParentContentId($parent_content
    ->id());
  return $this;
}