ModifyResolvedFrontendGroupsEvent
final class \
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
- getRequest() : ServerRequestInterface|null
- getUser() : FrontendUserAuthentication
- setGroups() : void
Methods
__construct()
public
__construct(FrontendUserAuthentication $user, array $groups, ServerRequestInterface|null $request) : mixed
Parameters
- $user : FrontendUserAuthentication
- $groups : array
- $request : ServerRequestInterface|null
getGroups()
public
getGroups() : array
Return values
arraygetRequest()
public
getRequest() : ServerRequestInterface|null
Return values
ServerRequestInterface|nullgetUser()
public
getUser() : FrontendUserAuthentication
Return values
FrontendUserAuthenticationsetGroups()
public
setGroups(array $groups) : void
Parameters
- $groups : array