public function GroupPermissionHandlerInterface::getPermissionsByGroupType in Group 2.0.x
Same name and namespace in other branches
- 8 src/Access/GroupPermissionHandlerInterface.php \Drupal\group\Access\GroupPermissionHandlerInterface::getPermissionsByGroupType()
Gets all defined group permissions for a group type.
Unlike ::getPermissions(), this also includes the group permissions that were defined by the plugins installed on the group type.
Parameters
\Drupal\group\Entity\GroupTypeInterface $group_type: The group type to retrieve the permission list for.
Return value
array The full permission list, structured like ::getPermissions().
See also
\Drupal\group\Access\GroupPermissionHandlerInterface::getPermissions()
1 method overrides GroupPermissionHandlerInterface::getPermissionsByGroupType()
- GroupPermissionHandler::getPermissionsByGroupType in src/
Access/ GroupPermissionHandler.php - Gets all defined group permissions for a group type.
File
- src/
Access/ GroupPermissionHandlerInterface.php, line 73
Class
- GroupPermissionHandlerInterface
- Defines an interface to list available permissions.
Namespace
Drupal\group\AccessCode
public function getPermissionsByGroupType(GroupTypeInterface $group_type);