You are here

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

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

Sets group entity.

Parameters

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

Return value

$this

File

src/Entity/OpignoGroupManagedLink.php, line 107

Class

OpignoGroupManagedLink
Defines the Opigno Group Link entity.

Namespace

Drupal\opigno_group_manager\Entity

Code

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