BackendUtilityHook
Read onlyYes
This is a specific hook implementation and is not considered part of the Public TYPO3 API.
Table of Contents
Methods
- __construct() : mixed
- createPageUriForWorkspaceVersion() : void
- Hooks into the PagePreviewUri and redirects to the workspace preview only if we're in a workspace and if the frontend-preview is disabled.
- displayEditingStagedElementInformation() : void
- Use that hook to show an info message in case someone starts editing a staged element
- getBackendUser() : BackendUserAuthentication
- getLanguageService() : LanguageService|null
Methods
__construct()
public
__construct(PreviewUriBuilder $previewUriBuilder, TcaSchemaFactory $tcaSchemaFactory, FlashMessageService $flashMessageService, StagesService $stagesService) : mixed
Parameters
- $previewUriBuilder : PreviewUriBuilder
- $tcaSchemaFactory : TcaSchemaFactory
- $flashMessageService : FlashMessageService
- $stagesService : StagesService
createPageUriForWorkspaceVersion()
Hooks into the PagePreviewUri and redirects to the workspace preview only if we're in a workspace and if the frontend-preview is disabled.
public
createPageUriForWorkspaceVersion(BeforePagePreviewUriGeneratedEvent $event) : void
Parameters
- $event : BeforePagePreviewUriGeneratedEvent
Attributes
- #[AsEventListener]
- 'typo3-workspaces/link-modifier'
displayEditingStagedElementInformation()
Use that hook to show an info message in case someone starts editing a staged element
public
displayEditingStagedElementInformation(ModifyEditFormUserAccessEvent $event) : void
Parameters
- $event : ModifyEditFormUserAccessEvent
Attributes
- #[AsEventListener]
- 'typo3-workspaces/display-editing-staged-element-information'
getBackendUser()
protected
getBackendUser() : BackendUserAuthentication
Return values
BackendUserAuthenticationgetLanguageService()
protected
getLanguageService() : LanguageService|null