ViewModuleController

Controller for viewing the frontend

Internal

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

Table of Contents

Properties

$iconFactory  : IconFactory
$moduleTemplate  : ModuleTemplate|null
$moduleTemplateFactory  : ModuleTemplateFactory
$pageRenderer  : PageRenderer
$pageRepository  : PageRepository
$siteFinder  : SiteFinder
$uriBuilder  : UriBuilder
$view  : StandaloneView

Methods

__construct()  : mixed
showAction()  : ResponseInterface
Show selected page from pagetree in iframe
getBackendUser()  : BackendUserAuthentication
getCurrentLanguage()  : int
Returns the current language id
getLanguageService()  : LanguageService
getPreviewLanguages()  : array<string|int, mixed>
Returns the preview languages
getPreviewPresets()  : array<string|int, mixed>
Get available presets for page id
getShortcutTitle()  : string
Returns the shortcut title for the current page
getTypeParameterIfSet()  : string
With page TS config it is possible to force a specific type id via mod.web_view.type for a page id or a page tree.
initializeView()  : mixed
Initialize view
isValidDoktype()  : bool
Verifies if doktype of given page is valid
registerDocHeader()  : mixed
Register the doc header
renderFlashMessage()  : HtmlResponse

Properties

Methods

showAction()

Show selected page from pagetree in iframe

public showAction(ServerRequestInterface $request) : ResponseInterface
Parameters
$request : ServerRequestInterface
Tags
throws
Exception
Return values
ResponseInterface

getCurrentLanguage()

Returns the current language id

protected getCurrentLanguage(int $pageId[, string|null $languageParam = null ]) : int
Parameters
$pageId : int
$languageParam : string|null = null
Return values
int

getPreviewLanguages()

Returns the preview languages

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

getPreviewPresets()

Get available presets for page id

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

getShortcutTitle()

Returns the shortcut title for the current page

protected getShortcutTitle(int $pageId) : string
Parameters
$pageId : int
Return values
string

getTypeParameterIfSet()

With page TS config it is possible to force a specific type id via mod.web_view.type for a page id or a page tree.

protected getTypeParameterIfSet(int $pageId) : string

The method checks if a type is set for the given id and returns the additional GET string.

Parameters
$pageId : int
Return values
string

initializeView()

Initialize view

protected initializeView(string $templateName) : mixed
Parameters
$templateName : string

isValidDoktype()

Verifies if doktype of given page is valid

protected isValidDoktype([int $pageId = 0 ]) : bool
Parameters
$pageId : int = 0
Return values
bool

registerDocHeader()

Register the doc header

protected registerDocHeader(int $pageId, int $languageId, string $targetUrl, string $route) : mixed
Parameters
$pageId : int
$languageId : int
$targetUrl : string
$route : string

        
On this page

Search results