PreviewController
Read onlyYes
Implements the preview controller of the workspace module.
This is a specific Backend Controller implementation and is not considered part of the Public TYPO3 API.
Attributes
- #[AsController]
Table of Contents
Properties
- $context : Context
- $moduleTemplateFactory : ModuleTemplateFactory
- $pageRenderer : PageRenderer
- $siteFinder : SiteFinder
- $uriBuilder : UriBuilder
- $workspaceService : WorkspaceService
Methods
- __construct() : mixed
- handleRequest() : ResponseInterface
- Basically makes sure that the workspace preview is rendered.
- generateUrl() : string
- getBackendUser() : BackendUserAuthentication
Properties
$context
protected
Context
$context
$moduleTemplateFactory
protected
ModuleTemplateFactory
$moduleTemplateFactory
$pageRenderer
protected
PageRenderer
$pageRenderer
$siteFinder
protected
SiteFinder
$siteFinder
$uriBuilder
protected
UriBuilder
$uriBuilder
$workspaceService
protected
WorkspaceService
$workspaceService
Methods
__construct()
public
__construct(WorkspaceService $workspaceService, PageRenderer $pageRenderer, UriBuilder $uriBuilder, SiteFinder $siteFinder, Context $context, ModuleTemplateFactory $moduleTemplateFactory) : mixed
Parameters
- $workspaceService : WorkspaceService
- $pageRenderer : PageRenderer
- $uriBuilder : UriBuilder
- $siteFinder : SiteFinder
- $context : Context
- $moduleTemplateFactory : ModuleTemplateFactory
handleRequest()
Basically makes sure that the workspace preview is rendered.
public
handleRequest(ServerRequestInterface $request) : ResponseInterface
The preview itself consists of three frames, so there are only the frames-urls we have to generate here.
Parameters
- $request : ServerRequestInterface
Return values
ResponseInterfacegenerateUrl()
protected
generateUrl(Site $site, int $pageUid, array<string|int, mixed> $parameters[, Context|null $context = null ]) : string
Parameters
Return values
stringgetBackendUser()
protected
getBackendUser() : BackendUserAuthentication