PreviewController

readonly class \TYPO3\CMS\Workspaces\Controller\PreviewController

Implements the preview controller of the workspace module.

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

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[, Context|null $context = null ]) : string

Parameters

$site : Site
$pageUid : int
$parameters : array
$context : Context|null = null

Return values

string
On this page