You are here

public function OgRoleManagerInterface::getRolesByBundle in Organic groups 8

Returns all the roles of a provided group.

Parameters

string $entity_type_id: The entity type ID of the group.

string $bundle: The bundle of the group.

Return value

\Drupal\og\OgRoleInterface[] An array of roles indexed by their IDs.

1 method overrides OgRoleManagerInterface::getRolesByBundle()
OgRoleManager::getRolesByBundle in src/OgRoleManager.php
Returns all the roles of a provided group.

File

src/OgRoleManagerInterface.php, line 61

Class

OgRoleManagerInterface
Defines an interface for OG role manager.

Namespace

Drupal\og

Code

public function getRolesByBundle($entity_type_id, $bundle);