You are here

public function OpignoGroupManagedContent::setGroup in Opigno group manager 3.x

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

Sets group ID.

Parameters

\Drupal\group\Entity\Group $group: The group entity.

Return value

$this

File

src/Entity/OpignoGroupManagedContent.php, line 125

Class

OpignoGroupManagedContent
Defines the Opigno Group Content entity.

Namespace

Drupal\opigno_group_manager\Entity

Code

public function setGroup(Group $group) {
  $this
    ->setGroupId($group
    ->id());
  return $this;
}