public function TestTeamPermissions::permissions in Apigee Edge 8
Returns team permissions provided by a module.
Return value
\Drupal\apigee_edge_teams\Structure\TeamPermission[] Array of team permissions.
Overrides DynamicTeamPermissionProviderInterface::permissions
See also
\Drupal\apigee_edge_teams\TeamPermissionHandlerInterface
File
- modules/
apigee_edge_teams/ tests/ modules/ apigee_edge_teams_test/ src/ TestTeamPermissions.php, line 57
Class
- TestTeamPermissions
- Provides dynamic team permissions for testing.
Namespace
Drupal\apigee_edge_teams_testCode
public function permissions() : array {
return [
new TeamPermission('test team permission 3', $this
->t('Team permission test 3'), $this
->t('Team permission test'), $this
->t('This is the 3rd team test permission.')),
new TeamPermission('test team permission 4', $this
->t('Team permission test 4'), $this
->t('Team permission test')),
];
}