public function GroupPermissionCheckerInterface::hasPermissionInGroup in Group 8
Same name and namespace in other branches
- 2.0.x src/Access/GroupPermissionCheckerInterface.php \Drupal\group\Access\GroupPermissionCheckerInterface::hasPermissionInGroup()
Checks whether an account has a permission in a group.
Parameters
string $permission: The name of the permission to check for.
\Drupal\Core\Session\AccountInterface $account: The user account for which to check the group permissions.
\Drupal\group\Entity\GroupInterface $group: The group to check the permission against.
Return value
bool Whether the account has the group permission.
1 method overrides GroupPermissionCheckerInterface::hasPermissionInGroup()
- GroupPermissionChecker::hasPermissionInGroup in src/
Access/ GroupPermissionChecker.php - Checks whether an account has a permission in a group.
File
- src/
Access/ GroupPermissionCheckerInterface.php, line 26
Class
- GroupPermissionCheckerInterface
- Defines the group permission checker interface.
Namespace
Drupal\group\AccessCode
public function hasPermissionInGroup($permission, AccountInterface $account, GroupInterface $group);