You are here

public function OgRole::setGroupType in Organic groups 8

Sets the group type.

Parameters

string $group_type: The group type to set.

Return value

$this

Overrides OgRoleInterface::setGroupType

File

src/Entity/OgRole.php, line 100

Class

OgRole
Defines the OG user role entity class.

Namespace

Drupal\og\Entity

Code

public function setGroupType($group_type) {
  $this
    ->set('group_type', $group_type);
  return $this;
}