You are here

public function OgMembershipInterface::getRoles in Organic groups 8

Gets all the referenced OG roles.

Return value

\Drupal\og\OgRoleInterface[] List of OG roles the user own for the current membership instance.

1 method overrides OgMembershipInterface::getRoles()
OgMembership::getRoles in src/Entity/OgMembership.php
Gets all the referenced OG roles.

File

src/OgMembershipInterface.php, line 214

Class

OgMembershipInterface
Provides an interface for OG memberships.

Namespace

Drupal\og

Code

public function getRoles() : array;