You are here

public function LPManagedContent::getParentsLinks in Opigno Learning path 3.x

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

Returns parent links.

File

src/Entity/LPManagedContent.php, line 222

Class

LPManagedContent
Defines the Learning Path Content entity.

Namespace

Drupal\opigno_learning_path\Entity

Code

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