WidgetAjaxController
Table of Contents
Properties
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
- migrateData() : array<string|int, mixed>
- This method performs some runtime migrations necessary due to the update of chart.js v2 > v4
Properties
$dashboardRepository read-only
protected
DashboardRepository
$dashboardRepository
$widgetRegistry read-only
protected
WidgetRegistry
$widgetRegistry
Methods
__construct()
public
__construct(DashboardRepository $dashboardRepository, WidgetRegistry $widgetRegistry) : mixed
Parameters
- $dashboardRepository : DashboardRepository
- $widgetRegistry : WidgetRegistry
getContent()
public
getContent(ServerRequestInterface $request) : ResponseInterface
Parameters
- $request : ServerRequestInterface
Return values
ResponseInterfacesavePositions()
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
ResponseInterfacegetBackendUser()
protected
getBackendUser() : BackendUserAuthentication
Return values
BackendUserAuthenticationmigrateData()
This method performs some runtime migrations necessary due to the update of chart.js v2 > v4
protected
migrateData(EventDataInterface $widget) : array<string|int, mixed>
this method will be gone in TYPO3 v13
Parameters
- $widget : EventDataInterface