You are here

public function GroupRoleStorageInterface::loadByUserAndGroup in Group 8

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

Retrieves all GroupRole entities for a user within a group.

Parameters

\Drupal\Core\Session\AccountInterface $account: The account to load the group role entities for.

\Drupal\group\Entity\GroupInterface $group: The group entity to find the user's role entities in.

boolean $include_implied: (optional) Whether to include the implied roles 'anonymous', 'outsider' and 'member'. Defaults to TRUE.

Return value

\Drupal\group\Entity\GroupRoleInterface[] The group roles matching the criteria.

1 method overrides GroupRoleStorageInterface::loadByUserAndGroup()
GroupRoleStorage::loadByUserAndGroup in src/Entity/Storage/GroupRoleStorage.php
Retrieves all GroupRole entities for a user within a group.

File

src/Entity/Storage/GroupRoleStorageInterface.php, line 29

Class

GroupRoleStorageInterface
Defines an interface for group role entity storage classes.

Namespace

Drupal\group\Entity\Storage

Code

public function loadByUserAndGroup(AccountInterface $account, GroupInterface $group, $include_implied = TRUE);