WidgetAjaxController
Attributes
- #[AsController]
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
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