You are here

public function OpignoGroupManagedContent::setGroupId in Opigno group manager 8

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

Sets group entity ID.

Parameters

int $group_id: The Group entity ID.

Return value

$this

1 call to OpignoGroupManagedContent::setGroupId()
OpignoGroupManagedContent::setGroup in src/Entity/OpignoGroupManagedContent.php
Sets group ID.

File

src/Entity/OpignoGroupManagedContent.php, line 102

Class

OpignoGroupManagedContent
Defines the Opigno Group Content entity.

Namespace

Drupal\opigno_group_manager\Entity

Code

public function setGroupId($group_id) {
  $this
    ->set('group_id', $group_id);
  return $this;
}