You are here

public function LearningPathContent::__construct in Opigno Learning path 8

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

LearningPathContent constructor.

File

src/LearningPathContent.php, line 21

Class

LearningPathContent
Class LearningPathContent.

Namespace

Drupal\opigno_learning_path

Code

public function __construct($learning_path_content_type_id, $entity_type, $entity_id, $title, $image_url, $image_alt) {
  $this
    ->setLearningPathContentTypeId($learning_path_content_type_id);
  $this
    ->setEntityType($entity_type);
  $this
    ->setEntityId($entity_id);
  $this
    ->setTitle($title);
  $this
    ->setImageUrl($image_url);
  $this
    ->setImageAlt($image_alt);
}