interface TeamPermissionHandlerInterface in Apigee Edge 8
Defines an interface to list available team permissions.
Based on Drupal core's PermissionHandlerInterface.
Hierarchy
- interface \Drupal\apigee_edge_teams\TeamPermissionHandlerInterface
Expanded class hierarchy of TeamPermissionHandlerInterface
All classes that implement TeamPermissionHandlerInterface
See also
\Drupal\user\PermissionHandlerInterface
7 files declare their use of TeamPermissionHandlerInterface
- ManageTeamMembersAccess.php in modules/
apigee_edge_teams/ src/ Access/ ManageTeamMembersAccess.php - TeamAppAccessHandler.php in modules/
apigee_edge_teams/ src/ Entity/ TeamAppAccessHandler.php - TeamAppEditForm.php in modules/
apigee_edge_teams/ src/ Entity/ Form/ TeamAppEditForm.php - TeamAppListByTeamAccess.php in modules/
apigee_edge_teams/ src/ Access/ TeamAppListByTeamAccess.php - TeamInvitationAccessControlHandler.php in modules/
apigee_edge_teams/ src/ Entity/ TeamInvitationAccessControlHandler.php
File
- modules/
apigee_edge_teams/ src/ TeamPermissionHandlerInterface.php, line 33
Namespace
Drupal\apigee_edge_teamsView source
interface TeamPermissionHandlerInterface {
/**
* Gets all available team permissions.
*
* @return \Drupal\apigee_edge_teams\Structure\TeamPermission[]
* Array of team permissions.
*/
public function getPermissions() : array;
/**
* Returns team permissions of a developer within a team.
*
* @param \Drupal\apigee_edge_teams\Entity\TeamInterface $team
* The team entity, the developer is not necessarily member of the team.
* @param \Drupal\Core\Session\AccountInterface $account
* The user entity.
*
* @return array
* Array of team permissions names.
*
* @throws \Drupal\apigee_edge_teams\Exception\InvalidArgumentException
*/
public function getDeveloperPermissionsByTeam(TeamInterface $team, AccountInterface $account) : array;
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
TeamPermissionHandlerInterface:: |
public | function | Returns team permissions of a developer within a team. | 1 |
TeamPermissionHandlerInterface:: |
public | function | Gets all available team permissions. | 1 |