You are here

public function OpignoGroupContent::__construct in Opigno group manager 8

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

OpignoGroupContent constructor.

File

src/OpignoGroupContent.php, line 21

Class

OpignoGroupContent
Class OpignoGroupContent.

Namespace

Drupal\opigno_group_manager

Code

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