You are here

public function LPManagedContent::getLearningPathId 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::getLearningPathId()

Returns learning path group ID.

3 calls to LPManagedContent::getLearningPathId()
LPManagedContent::delete in src/Entity/LPManagedContent.php
Deletes the content from database.
LPManagedContent::getChildrenLinks in src/Entity/LPManagedContent.php
Sets parent links.
LPManagedContent::getParentsLinks in src/Entity/LPManagedContent.php
Returns parent links.

File

src/Entity/LPManagedContent.php, line 87

Class

LPManagedContent
Defines the Learning Path Content entity.

Namespace

Drupal\opigno_learning_path\Entity

Code

public function getLearningPathId() {
  return $this
    ->get('learning_path_id')->target_id;
}