You are here

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

Returns group entity ID.

Return value

int The group entity ID.

3 calls to OpignoGroupManagedContent::getGroupId()
OpignoGroupManagedContent::delete in src/Entity/OpignoGroupManagedContent.php
Deletes the content from database.
OpignoGroupManagedContent::getChildrenLinks in src/Entity/OpignoGroupManagedContent.php
Returns children links.
OpignoGroupManagedContent::getParentsLinks in src/Entity/OpignoGroupManagedContent.php
Returns parents links.

File

src/Entity/OpignoGroupManagedContent.php, line 90

Class

OpignoGroupManagedContent
Defines the Opigno Group Content entity.

Namespace

Drupal\opigno_group_manager\Entity

Code

public function getGroupId() {
  return $this
    ->get('group_id')->target_id;
}