WidgetAjaxController extends AbstractController

Internal

Table of Contents

Constants

MODULE_DATA_CURRENT_DASHBOARD_IDENTIFIER  = 'dashboard/current_dashboard/'

Properties

$currentDashboard  : Dashboard|null
$dashboardRepository  : DashboardRepository
$widgetRegistry  : WidgetRegistry

Methods

__construct()  : mixed
getContent()  : ResponseInterface
savePositions()  : ResponseInterface
Get the order of the widgets from the request and save the order in the database by using the repository
getBackendUser()  : BackendUserAuthentication
getLanguageService()  : LanguageService
loadCurrentDashboard()  : string
saveCurrentDashboard()  : void

Constants

MODULE_DATA_CURRENT_DASHBOARD_IDENTIFIER

protected mixed MODULE_DATA_CURRENT_DASHBOARD_IDENTIFIER = 'dashboard/current_dashboard/'

Properties

Methods

getContent()

public getContent(ServerRequestInterface $request) : ResponseInterface
Parameters
$request : ServerRequestInterface
Tags
throws
Exception
Return values
ResponseInterface

savePositions()

Get the order of the widgets from the request and save the order in the database by using the repository

public savePositions(ServerRequestInterface $request) : ResponseInterface
Parameters
$request : ServerRequestInterface
Return values
ResponseInterface

loadCurrentDashboard()

protected loadCurrentDashboard() : string
Return values
string

saveCurrentDashboard()

protected saveCurrentDashboard(string $identifier) : void
Parameters
$identifier : string

        
On this page

Search results