You are here

public function GroupRoleSynchronizer::getGroupRoleIdsByGroupType in Group 8

Same name and namespace in other branches
  1. 2.0.x src/GroupRoleSynchronizer.php \Drupal\group\GroupRoleSynchronizer::getGroupRoleIdsByGroupType()

Retrieves all synchronized group role IDs for a group type.

Parameters

string $group_type_id: The ID of the group type the group role IDs should be retrieved for.

Return value

string[] The synchronized group role IDs for the given group type.

Overrides GroupRoleSynchronizerInterface::getGroupRoleIdsByGroupType

File

src/GroupRoleSynchronizer.php, line 56

Class

GroupRoleSynchronizer
Synchronizes user roles to group roles.

Namespace

Drupal\group

Code

public function getGroupRoleIdsByGroupType($group_type_id) {
  return $this
    ->getGroupRoleIdsByGroupTypes([
    $group_type_id,
  ]);
}