You are here

public function GroupMembershipInterface::getGroupMembers in farmOS 2.x

Get assets that are members of groups.

Parameters

\Drupal\asset\Entity\AssetInterface[] $groups: An array of group assets to lookup.

bool $recurse: Boolean: whether or not to recurse and load members of sub-groups. Defaults to TRUE.

Return value

\Drupal\asset\Entity\AssetInterface[] Returns an array of assets.

File

modules/asset/group/src/GroupMembershipInterface.php, line 58

Class

GroupMembershipInterface
Asset group membership logic.

Namespace

Drupal\farm_group

Code

public function getGroupMembers(array $groups, bool $recurse = TRUE) : array;