DashboardController
Attributes
- #[AsController]
Table of Contents
Properties
- $dashboardInitializationService : DashboardInitializationService
- $moduleTemplateFactory : ModuleTemplateFactory
- $pageRenderer : PageRenderer
Methods
- __construct() : mixed
- mainAction() : ResponseInterface
- addFrontendResources() : void
- Adds CSS and JS files that are necessary for widgets to the page renderer
- getBackendUser() : BackendUserAuthentication
- getLanguageService() : LanguageService
- preparePageRenderer() : void
- Add the CSS and JS of the dashboard module to the page renderer
Properties
$dashboardInitializationService read-only
protected
DashboardInitializationService
$dashboardInitializationService
$moduleTemplateFactory read-only
protected
ModuleTemplateFactory
$moduleTemplateFactory
$pageRenderer read-only
protected
PageRenderer
$pageRenderer
Methods
__construct()
public
__construct(PageRenderer $pageRenderer, DashboardInitializationService $dashboardInitializationService, ModuleTemplateFactory $moduleTemplateFactory) : mixed
Parameters
- $pageRenderer : PageRenderer
- $dashboardInitializationService : DashboardInitializationService
- $moduleTemplateFactory : ModuleTemplateFactory
mainAction()
public
mainAction(ServerRequestInterface $request) : ResponseInterface
Parameters
- $request : ServerRequestInterface
Return values
ResponseInterfaceaddFrontendResources()
Adds CSS and JS files that are necessary for widgets to the page renderer
protected
addFrontendResources() : void
getBackendUser()
protected
getBackendUser() : BackendUserAuthentication
Return values
BackendUserAuthenticationgetLanguageService()
protected
getLanguageService() : LanguageService
Return values
LanguageServicepreparePageRenderer()
Add the CSS and JS of the dashboard module to the page renderer
protected
preparePageRenderer() : void