ModifyResolvedFrontendGroupsEvent
FinalYes
Event listener to allow to add custom Frontend Groups to a (frontend) request regardless if a user is logged in or not.
Table of Contents
Methods
- __construct() : mixed
- getGroups() : array<string|int, mixed>
- getRequest() : ServerRequestInterface|null
- getUser() : FrontendUserAuthentication
- setGroups() : void
Methods
__construct()
public
__construct(FrontendUserAuthentication $user, array<string|int, mixed> $groups, ServerRequestInterface|null $request) : mixed
Parameters
- $user : FrontendUserAuthentication
- $groups : array<string|int, mixed>
- $request : ServerRequestInterface|null
getGroups()
public
getGroups() : array<string|int, mixed>
Return values
array<string|int, mixed>getRequest()
public
getRequest() : ServerRequestInterface|null
Return values
ServerRequestInterface|nullgetUser()
public
getUser() : FrontendUserAuthentication
Return values
FrontendUserAuthenticationsetGroups()
public
setGroups(array<string|int, mixed> $groups) : void
Parameters
- $groups : array<string|int, mixed>