You are here

public function LPManagedLink::setChildContent in Opigno Learning path 3.x

Same name and namespace in other branches
  1. 8 src/Entity/LPManagedLink.php \Drupal\opigno_learning_path\Entity\LPManagedLink::setChildContent()

Sets child content object.

File

src/Entity/LPManagedLink.php, line 151

Class

LPManagedLink
Defines the Learning Path Link entity.

Namespace

Drupal\opigno_learning_path\Entity

Code

public function setChildContent(LPManagedContent $child_content) {
  $this
    ->setChildContentId($child_content
    ->id());
  return $this;
}