PreviewController
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.
Table of Contents
Properties
- $moduleTemplate : ModuleTemplate
- ModuleTemplate object
- $moduleTemplateFactory : ModuleTemplateFactory
- $pageId : int
- $pageRenderer : PageRenderer
- $siteFinder : SiteFinder
- $stageService : StagesService
- $uriBuilder : UriBuilder
- $view : ViewInterface
- $workspaceService : WorkspaceService
Methods
- __construct() : mixed
- handleRequest() : ResponseInterface
- Basically makes sure that the workspace preview is rendered.
- generateUrl() : string
- getBackendUser() : BackendUserAuthentication
- initializeView() : mixed
- Sets up the view
- isValidStage() : bool
- Evaluate the activate state based on given $stageArray.
Properties
$moduleTemplate
ModuleTemplate object
protected
ModuleTemplate
$moduleTemplate
$moduleTemplateFactory
protected
ModuleTemplateFactory
$moduleTemplateFactory
$pageId
protected
int
$pageId
$pageRenderer
protected
PageRenderer
$pageRenderer
$siteFinder
protected
SiteFinder
$siteFinder
$stageService
protected
StagesService
$stageService
$uriBuilder
protected
UriBuilder
$uriBuilder
$view
protected
ViewInterface
$view
$workspaceService
protected
WorkspaceService
$workspaceService
Methods
__construct()
public
__construct(StagesService $stageService, WorkspaceService $workspaceService, PageRenderer $pageRenderer, UriBuilder $uriBuilder, SiteFinder $siteFinder, ModuleTemplateFactory $moduleTemplateFactory) : mixed
Parameters
- $stageService : StagesService
- $workspaceService : WorkspaceService
- $pageRenderer : PageRenderer
- $uriBuilder : UriBuilder
- $siteFinder : SiteFinder
- $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) : string
Parameters
- $site : Site
- $pageUid : int
- $parameters : array<string|int, mixed>
Return values
stringgetBackendUser()
protected
getBackendUser() : BackendUserAuthentication
Return values
BackendUserAuthenticationinitializeView()
Sets up the view
protected
initializeView(string $templateName) : mixed
Parameters
- $templateName : string
isValidStage()
Evaluate the activate state based on given $stageArray.
protected
isValidStage(array<string|int, mixed> $stageArray) : bool
Parameters
- $stageArray : array<string|int, mixed>