ViewModuleController

FinalYes

Controller to show a frontend page in the backend. Backend "Content > Preview" 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

$componentFactory  : ComponentFactory
$iconFactory  : IconFactory
$moduleTemplateFactory  : ModuleTemplateFactory
$pageContext  : PageContext
$pageContextFactory  : PageContextFactory
$pageRepository  : PageRepository
$policyRegistry  : PolicyRegistry
$uriBuilder  : UriBuilder

Methods

__construct()  : mixed
handleRequest()  : ResponseInterface
getBackendUser()  : BackendUserAuthentication
getLanguageService()  : LanguageService
getPreviewLanguages()  : array<string|int, mixed>
getPreviewPresets()  : array<string|int, mixed>
isValidPage()  : bool
Verifies if page itself and also the doktype is valid - not a folder / spacer / .
registerDocHeader()  : void

Properties

Methods

__construct()

public __construct(ModuleTemplateFactory $moduleTemplateFactory, IconFactory $iconFactory, UriBuilder $uriBuilder, PageRepository $pageRepository, PolicyRegistry $policyRegistry, ComponentFactory $componentFactory, PageContextFactory $pageContextFactory) : mixed
Parameters
$moduleTemplateFactory : ModuleTemplateFactory
$iconFactory : IconFactory
$uriBuilder : UriBuilder
$pageRepository : PageRepository
$policyRegistry : PolicyRegistry
$componentFactory : ComponentFactory
$pageContextFactory : PageContextFactory

handleRequest()

public handleRequest(ServerRequestInterface $request) : ResponseInterface
Parameters
$request : ServerRequestInterface
Return values
ResponseInterface

getPreviewLanguages()

protected getPreviewLanguages() : array<string|int, mixed>
Return values
array<string|int, mixed>

getPreviewPresets()

protected getPreviewPresets() : array<string|int, mixed>
Return values
array<string|int, mixed>

isValidPage()

Verifies if page itself and also the doktype is valid - not a folder / spacer / .

protected isValidPage() : bool

..

Return values
bool

registerDocHeader()

protected registerDocHeader(ModuleTemplate $view, array<string|int, mixed> $previewLanguages, int $languageId, string $targetUrl) : void
Parameters
$view : ModuleTemplate
$previewLanguages : array<string|int, mixed>
$languageId : int
$targetUrl : string

        
On this page

Search results