ViewModuleController
FinalYes
Controller to show a frontend page in the backend. Backend "Content > Preview" module.
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
$componentFactory read-only
protected
ComponentFactory
$componentFactory
$iconFactory read-only
protected
IconFactory
$iconFactory
$moduleTemplateFactory read-only
protected
ModuleTemplateFactory
$moduleTemplateFactory
$pageContext
protected
PageContext
$pageContext
$pageContextFactory read-only
protected
PageContextFactory
$pageContextFactory
$pageRepository read-only
protected
PageRepository
$pageRepository
$policyRegistry read-only
protected
PolicyRegistry
$policyRegistry
$uriBuilder read-only
protected
UriBuilder
$uriBuilder
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
ResponseInterfacegetBackendUser()
protected
getBackendUser() : BackendUserAuthentication
Return values
BackendUserAuthenticationgetLanguageService()
protected
getLanguageService() : LanguageService
Return values
LanguageServicegetPreviewLanguages()
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
boolregisterDocHeader()
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