‪TYPO3CMS  11.5
RequestMiddlewares.php
Go to the documentation of this file.
1 <?php
5 return [
6  'frontend' => [
7  'typo3/cms-workspaces/preview' => [
8  'target' => \TYPO3\CMS\Workspaces\Middleware\WorkspacePreview::class,
9  'after' => [
10  // A preview user will override an existing logged-in backend user
11  'typo3/cms-frontend/backend-user-authentication',
12  ],
13  'before' => [
14  // Page Router should have not been called yet, in order to set up the Context's Workspace Aspect
15  'typo3/cms-frontend/page-resolver',
16  ],
17  ],
18  'typo3/cms-workspaces/preview-permissions' => [
19  'target' => \TYPO3\CMS\Workspaces\Middleware\WorkspacePreviewPermissions::class,
20  'after' => [
21  // The cookie/GET parameter information should have been evaluated
22  'typo3/cms-workspaces/preview',
23  // PageArguments are needed to find out the current Page ID
24  'typo3/cms-frontend/page-resolver',
25  'typo3/cms-frontend/page-argument-validator',
26  ],
27  'before' => [
28  // TSFE should not yet have been called - determineId() is what relies on the information of this middleware
29  'typo3/cms-frontend/tsfe',
30  ],
31  ],
32  ],
33 ];