You are here

public function OpignoGroupManagedContent::getGroup 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::getGroup()

Returns group.

Return value

\Drupal\group\Entity\Group Group.

File

src/Entity/OpignoGroupManagedContent.php, line 113

Class

OpignoGroupManagedContent
Defines the Opigno Group Content entity.

Namespace

Drupal\opigno_group_manager\Entity

Code

public function getGroup() {
  return $this
    ->get('group_id')->entity;
}