GeneralInformation extends AbstractSubModule implements DataProviderInterface
General information module displaying info about the current request
Table of Contents
Interfaces
- DataProviderInterface
- Adminpanel interface to denote that a module provides data to be stored for the current request
Methods
- getContent() : string
- Creates the content for the "info" section ("module") of the Admin Panel
- getDataToStore() : ModuleData
- getIdentifier() : string
- Identifier for this Sub-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
- getTimeTracker() : TimeTracker
- getTypoScriptFrontendController() : TypoScriptFrontendController
- isNoCacheEnabled() : bool
Methods
getContent()
Creates the content for the "info" section ("module") of the Admin Panel
public
getContent(ModuleData $data) : string
Parameters
- $data : ModuleData
Tags
Return values
string —HTML content for the section. Consists of a string with table-rows with four columns.
getDataToStore()
public
getDataToStore(ServerRequestInterface $request) : ModuleData
Parameters
- $request : ServerRequestInterface
Return values
ModuleDatagetIdentifier()
Identifier for this Sub-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() : string
Return values
stringcollectImagesOnPage()
Collects images from TypoScriptFrontendController and calculates the total size.
protected
collectImagesOnPage() : array<string|int, mixed>
Returns human-readable image sizes for fluid template output
Return values
array<string|int, mixed>getBackendUser()
protected
getBackendUser() : BackendUserAuthentication
Return values
BackendUserAuthenticationgetLanguageService()
protected
getLanguageService() : LanguageService
Return values
LanguageServicegetTimeTracker()
protected
getTimeTracker() : TimeTracker
Return values
TimeTrackergetTypoScriptFrontendController()
protected
getTypoScriptFrontendController() : TypoScriptFrontendController
Return values
TypoScriptFrontendControllerisNoCacheEnabled()
protected
isNoCacheEnabled() : bool