ModifyResolvedFrontendGroupsEvent¶
New in version 11.5.
- Event:
TYPO3\CMS\Frontend\Authentication\ModifyResolvedFrontendGroupsEvent
- Description:
This event allows Frontend Groups to be added to a (frontend) request regardless of whether a user is logged in or not.
This event is intended to restore the functionality found in the
getGroupsFE
authentication service that was removed in TYPO3 v11.
API¶
-
class
TYPO3\CMS\Frontend\Authentication\
ModifyResolvedFrontendGroupsEvent
¶ Event listener to allow to add custom Frontend Groups to a (frontend) request regardless if a user is logged in or not.
-
getRequest
()¶ Return type: PsrHttpMessageServerRequestInterface
-
getUser
()¶ Return type: TYPO3CMSFrontendAuthenticationFrontendUserAuthentication
-
getGroups
()¶ Return type: array
-
setGroups
(array groups)¶ Parameters: - $groups (array) – the groups
-