SimulatableFrontendUserGroupsResolver
final readonly class \
This class finds the frontend user groups that a backend user may simulate.
The list contains the groups on the pages that the backend user has the
permission Permission::PAGE_SHOW for. The default restrictions of the
query builder apply to the groups and to the pages. Thus the list does not
contain these groups:
- a hidden group
- a group on a hidden page
- a group on a page with a start time in the future
- a group on a page with an end time in the past
- a group on the root level, because it is not on a page
Internal
Attributes
- #[Autoconfigure]
- $public: true
Table of Contents
Methods
- __construct() : mixed
- resolve() : array<int, array{uid: int, title: string}>
Methods
__construct()
public
__construct(ConnectionPool $connectionPool) : mixed
Parameters
- $connectionPool : ConnectionPool
resolve()
public
resolve(BackendUserAuthentication $backendUser) : array<int, array{uid: int, title: string}>
Parameters
- $backendUser : BackendUserAuthentication
Return values
array<int, array{uid: int, title: string}> —ordered by title