You are here

public function LPManagedContent::getChildrenLinks in Opigno Learning path 8

Same name and namespace in other branches
  1. 3.x src/Entity/LPManagedContent.php \Drupal\opigno_learning_path\Entity\LPManagedContent::getChildrenLinks()

Sets parent links.

1 call to LPManagedContent::getChildrenLinks()
LPManagedContent::hasChildLink in src/Entity/LPManagedContent.php
If has child links.

File

src/Entity/LPManagedContent.php, line 232

Class

LPManagedContent
Defines the Learning Path Content entity.

Namespace

Drupal\opigno_learning_path\Entity

Code

public function getChildrenLinks() {
  return LPManagedLink::loadByProperties([
    'learning_path_id' => $this
      ->getLearningPathId(),
    'parent_content_id' => $this
      ->id(),
  ]);
}