GeneralInformation extends AbstractSubModule implements DataProviderInterface
General information module displaying info about the current request
Attributes
- #[Autoconfigure]
- $public: true
Table of Contents
Interfaces
- DataProviderInterface
- Adminpanel interface to denote that a module provides data to be stored for the current request
Methods
- __construct() : mixed
- getContent() : string
- Creates the content for the "info" section ("module") of the Admin Panel
- getDataToStore() : ModuleData
- getIdentifier() : string
- Identifier for this module, for example "preview" or "cache"
- getLabel() : string
- Module label
- collectDocumentSize() : string
- Gets the document size from the current page in a human-readable format
- collectImagesOnPage() : array<string|int, mixed>
- Collects images from TypoScriptFrontendController and calculates the total size.
- getBackendUser() : BackendUserAuthentication
- getLanguageService() : LanguageService
Methods
__construct()
public
__construct(TimeTracker $timeTracker, Context $context, ViewFactoryInterface $viewFactory) : mixed
Parameters
- $timeTracker : TimeTracker
- $context : Context
- $viewFactory : ViewFactoryInterface
getContent()
Creates the content for the "info" section ("module") of the Admin Panel
public
getContent(ModuleData $data) : string
Parameters
- $data : ModuleData
Return values
stringgetDataToStore()
public
getDataToStore(ServerRequestInterface $request) : ModuleData
Parameters
- $request : ServerRequestInterface
Return values
ModuleDatagetIdentifier()
Identifier for this module, for example "preview" or "cache"
public
getIdentifier() : string
Return values
stringgetLabel()
Module label
public
getLabel() : string
Return values
stringcollectDocumentSize()
Gets the document size from the current page in a human-readable format
protected
collectDocumentSize(ServerRequestInterface $request) : string
Parameters
- $request : ServerRequestInterface
Return values
stringcollectImagesOnPage()
Collects images from TypoScriptFrontendController and calculates the total size.
protected
collectImagesOnPage(ServerRequestInterface $request) : array<string|int, mixed>
Returns human-readable image sizes for fluid template output
Parameters
- $request : ServerRequestInterface
Return values
array<string|int, mixed>getBackendUser()
protected
getBackendUser() : BackendUserAuthentication
Return values
BackendUserAuthenticationgetLanguageService()
protected
getLanguageService() : LanguageService