You are here

public function OgRole::getGroupType in Organic groups 8

Returns the group type.

Return value

string The group type.

Overrides OgRoleInterface::getGroupType

3 calls to OgRole::getGroupType()
OgRole::delete in src/Entity/OgRole.php
Deletes an entity permanently.
OgRole::getName in src/Entity/OgRole.php
Returns the role name.
OgRole::save in src/Entity/OgRole.php
Saves an entity permanently.

File

src/Entity/OgRole.php, line 93

Class

OgRole
Defines the OG user role entity class.

Namespace

Drupal\og\Entity

Code

public function getGroupType() {
  return $this
    ->get('group_type');
}