You are here

public function GroupPermissionCheckerInterface::hasPermissionInGroup in Group 8

Same name and namespace in other branches
  1. 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\Access

Code

public function hasPermissionInGroup($permission, AccountInterface $account, GroupInterface $group);