PreviewController

Implements the preview controller of the workspace module.

Internal

This is a specific Backend Controller implementation and is not considered part of the Public TYPO3 API.

Attributes
#[AsController]

Table of Contents

Properties

$moduleTemplateFactory  : ModuleTemplateFactory
$pageRenderer  : PageRenderer
$siteFinder  : SiteFinder
$stageService  : StagesService
$uriBuilder  : UriBuilder
$workspaceService  : WorkspaceService

Methods

__construct()  : mixed
handleRequest()  : ResponseInterface
Basically makes sure that the workspace preview is rendered.
generateUrl()  : string
getBackendUser()  : BackendUserAuthentication
isValidStage()  : bool
Evaluate the active state.

Properties

Methods

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
ResponseInterface

generateUrl()

protected generateUrl(Site $site, int $pageUid, array<string|int, mixed> $parameters) : string
Parameters
$site : Site
$pageUid : int
$parameters : array<string|int, mixed>
Return values
string

isValidStage()

Evaluate the active state.

protected isValidStage(mixed $stageArray) : bool
Parameters
$stageArray : mixed
Return values
bool

        
On this page

Search results