Attention
TYPO3 v11 has reached end-of-life as of October 31th 2024 and is no longer being maintained. Use the version switcher on the top left of this page to select documentation for a supported version of TYPO3.
Need more time before upgrading? You can purchase Extended Long Term Support (ELTS) for TYPO3 v11 here: TYPO3 ELTS.
AfterGroupsResolvedEvent
When user groups are loaded, for example when a backend editor's groups and permissions
are calculated, a new PSR-14 event After
is fired.
This event contains a list of retrieved groups from the database which can be modified via event listeners. For example, more groups might be added when a particular user logs in or is seated at a special location.
Hint
This event acts as a substitution for the removed TYPO3 Hook
$GLOBALS
.
API
- class AfterGroupsResolvedEvent
-
- Fully qualified name
-
\TYPO3\
CMS\ Core\ Authentication\ Event\ After Groups Resolved Event
Event fired after user groups have been resolved for a specific user
- getSourceDatabaseTable ( )
-
- returntype
-
string
- Returns
-
'be_groups' or 'fe_groups' depending on context.
- getGroups ( )
-
List of group records including sub groups as resolved by core.
Note order is important: A user with main groups "1,2", where 1 has sub group 3, results in "3,1,2" as record list array - sub groups are listed before the group that includes the sub group.
- returntype
-
array