PreviewController

class \TYPO3\CMS\Workspaces\Controller\PreviewController

Implements the preview controller of the workspace module.

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

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 $parameters) : string

Parameters

$site : Site
$pageUid : int
$parameters : array

Return values

string

initializeView()

Sets up the view

protected initializeView(string $templateName) : mixed

Parameters

$templateName : string

isValidStage()

Evaluate the activate state based on given $stageArray.

protected isValidStage(array $stageArray) : bool

Parameters

$stageArray : array

Return values

bool
On this page