You are here

public function OgMembership::getType in Organic groups 8

Gets the membership type.

Return value

string The bundle of the membership type.

Overrides OgMembershipInterface::getType

File

src/Entity/OgMembership.php, line 223

Class

OgMembership
The membership entity that connects a group and a user.

Namespace

Drupal\og\Entity

Code

public function getType() : string {
  return $this
    ->bundle();
}