You are here

public function GroupRoleSynchronizer::getGroupRoleIdsByUserRole in Group 8

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

Retrieves all synchronized group role IDs for a user role.

Parameters

string $role_id: The ID of the user role the group role IDs should be retrieved for.

Return value

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

Overrides GroupRoleSynchronizerInterface::getGroupRoleIdsByUserRole

File

src/GroupRoleSynchronizer.php, line 79

Class

GroupRoleSynchronizer
Synchronizes user roles to group roles.

Namespace

Drupal\group

Code

public function getGroupRoleIdsByUserRole($role_id) {
  return $this
    ->getGroupRoleIdsByUserRoles([
    $role_id,
  ]);
}