public function GroupMembershipLoaderInterface::load in Group 8
Same name and namespace in other branches
- 2.0.x src/GroupMembershipLoaderInterface.php \Drupal\group\GroupMembershipLoaderInterface::load()
Loads a membership by group and user.
Parameters
\Drupal\group\Entity\GroupInterface $group: The group to load the membership from.
\Drupal\Core\Session\AccountInterface $account: The user to load the membership for.
Return value
\Drupal\group\GroupMembership|false The loaded GroupMembership or FALSE if none was found.
1 method overrides GroupMembershipLoaderInterface::load()
- GroupMembershipLoader::load in src/
GroupMembershipLoader.php - Loads a membership by group and user.
File
- src/
GroupMembershipLoaderInterface.php, line 24
Class
- GroupMembershipLoaderInterface
- Defines the group membership loader interface.
Namespace
Drupal\groupCode
public function load(GroupInterface $group, AccountInterface $account);