ViewModuleController
Controller for viewing the frontend
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
$iconFactory
protected
IconFactory
$iconFactory
$moduleTemplate
protected
ModuleTemplate|null
$moduleTemplate
= null
$moduleTemplateFactory
protected
ModuleTemplateFactory
$moduleTemplateFactory
$pageRenderer
protected
PageRenderer
$pageRenderer
$pageRepository
protected
PageRepository
$pageRepository
$siteFinder
protected
SiteFinder
$siteFinder
$uriBuilder
protected
UriBuilder
$uriBuilder
$view
protected
StandaloneView
$view
Methods
__construct()
public
__construct(ModuleTemplateFactory $moduleTemplateFactory, IconFactory $iconFactory, PageRenderer $pageRenderer, UriBuilder $uriBuilder, PageRepository $pageRepository, SiteFinder $siteFinder) : mixed
Parameters
- $moduleTemplateFactory : ModuleTemplateFactory
- $iconFactory : IconFactory
- $pageRenderer : PageRenderer
- $uriBuilder : UriBuilder
- $pageRepository : PageRepository
- $siteFinder : SiteFinder
showAction()
Show selected page from pagetree in iframe
public
showAction(ServerRequestInterface $request) : ResponseInterface
Parameters
- $request : ServerRequestInterface
Tags
Return values
ResponseInterfacegetBackendUser()
protected
getBackendUser() : BackendUserAuthentication
Return values
BackendUserAuthenticationgetCurrentLanguage()
Returns the current language id
protected
getCurrentLanguage(int $pageId[, string|null $languageParam = null ]) : int
Parameters
- $pageId : int
- $languageParam : string|null = null
Return values
intgetLanguageService()
protected
getLanguageService() : LanguageService
Return values
LanguageServicegetPreviewLanguages()
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
stringgetTypeParameterIfSet()
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
stringinitializeView()
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
boolregisterDocHeader()
Register the doc header
protected
registerDocHeader(int $pageId, int $languageId, string $targetUrl, string $route) : mixed
Parameters
- $pageId : int
- $languageId : int
- $targetUrl : string
- $route : string
renderFlashMessage()
protected
renderFlashMessage(FlashMessage $flashMessage) : HtmlResponse
Parameters
- $flashMessage : FlashMessage