You are here

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

Get the content type object of this content.

File

src/Entity/LPManagedContent.php, line 249

Class

LPManagedContent
Defines the Learning Path Content entity.

Namespace

Drupal\opigno_learning_path\Entity

Code

public function getLearningPathContentType() {
  $manager = \Drupal::getContainer()
    ->get('opigno_learning_path.content_types.manager');
  return $manager
    ->createInstance($this
    ->getLearningPathContentTypeId());
}