You are here

public function GroupInterface::getMembers in Group 8

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

Retrieves all group memberships for the group.

Parameters

string|array $roles: (optional) A group role machine name or a list of group role machine names to filter on. Results only need to match on one role (IN query).

Return value

\Drupal\group\GroupMembership[] A list of GroupMembership objects representing the memberships.

1 method overrides GroupInterface::getMembers()
Group::getMembers in src/Entity/Group.php
Retrieves all group memberships for the group.

File

src/Entity/GroupInterface.php, line 140

Class

GroupInterface
Provides an interface defining a Group entity.

Namespace

Drupal\group\Entity

Code

public function getMembers($roles = NULL);