DashboardInitializationService
Table of Contents
Constants
- MODULE_DATA_CURRENT_DASHBOARD_IDENTIFIER = 'dashboard/current_dashboard/'
Properties
- $javaScriptModuleInstructions : array<int, JavaScriptModuleInstruction>
Methods
- __construct() : mixed
- getCssFiles() : array<string|int, mixed>
- getCurrentDashboard() : Dashboard
- getDashboardsForUser() : array<string|int, Dashboard>
- getJavaScriptModuleInstructions() : array<int, JavaScriptModuleInstruction>
- getJsFiles() : array<string|int, mixed>
- getRequireJsModules() : array<int, string|array{0: string, 1: string}>
- initializeDashboards() : void
- createDefaultDashboards() : array<string|int, mixed>
- defineCssFiles() : void
- Define the correct path of the CSS files of a widget and add them to the list of CSS files that needs to be included
- defineCurrentDashboard() : Dashboard
- defineJavaScriptInstructions() : void
- defineJsFiles() : void
- Define the correct path of the JS files of a widget and add them to the list of JS files that needs to be included
- defineRequireJsModules() : void
- Add the RequireJS modules needed by some widgets
- defineResourcesOfWidgets() : void
- loadCurrentDashboard() : string
- saveCurrentDashboard() : void
Constants
MODULE_DATA_CURRENT_DASHBOARD_IDENTIFIER
protected
mixed
MODULE_DATA_CURRENT_DASHBOARD_IDENTIFIER
= 'dashboard/current_dashboard/'
Properties
$javaScriptModuleInstructions
protected
array<int, JavaScriptModuleInstruction>
$javaScriptModuleInstructions
= []
Methods
__construct()
public
__construct(DashboardRepository $dashboardRepository, DashboardPresetRegistry $dashboardPresetRegistry) : mixed
Parameters
- $dashboardRepository : DashboardRepository
- $dashboardPresetRegistry : DashboardPresetRegistry
getCssFiles()
public
getCssFiles() : array<string|int, mixed>
Return values
array<string|int, mixed>getCurrentDashboard()
public
getCurrentDashboard() : Dashboard
Return values
DashboardgetDashboardsForUser()
public
getDashboardsForUser() : array<string|int, Dashboard>
Return values
array<string|int, Dashboard>getJavaScriptModuleInstructions()
public
getJavaScriptModuleInstructions() : array<int, JavaScriptModuleInstruction>
Return values
array<int, JavaScriptModuleInstruction>getJsFiles()
public
getJsFiles() : array<string|int, mixed>
Return values
array<string|int, mixed>getRequireJsModules()
public
getRequireJsModules() : array<int, string|array{0: string, 1: string}>
Deprecate in TYPO3 v12.0
Return values
array<int, string|array{0: string, 1: string}>initializeDashboards()
public
initializeDashboards(BackendUserAuthentication $user) : void
Parameters
- $user : BackendUserAuthentication
createDefaultDashboards()
protected
createDefaultDashboards() : array<string|int, mixed>
Return values
array<string|int, mixed>defineCssFiles()
Define the correct path of the CSS files of a widget and add them to the list of CSS files that needs to be included
protected
defineCssFiles(AdditionalCssInterface $widgetInstance) : void
Parameters
- $widgetInstance : AdditionalCssInterface
defineCurrentDashboard()
protected
defineCurrentDashboard() : Dashboard
Return values
DashboarddefineJavaScriptInstructions()
protected
defineJavaScriptInstructions(JavaScriptInterface $widgetInstance) : void
Parameters
- $widgetInstance : JavaScriptInterface
defineJsFiles()
Define the correct path of the JS files of a widget and add them to the list of JS files that needs to be included
protected
defineJsFiles(AdditionalJavaScriptInterface $widgetInstance) : void
Parameters
- $widgetInstance : AdditionalJavaScriptInterface
defineRequireJsModules()
Add the RequireJS modules needed by some widgets
protected
defineRequireJsModules(RequireJsModuleInterface $widgetInstance) : void
Parameters
- $widgetInstance : RequireJsModuleInterface
defineResourcesOfWidgets()
protected
defineResourcesOfWidgets(array<string|int, mixed> $widgets) : void
Parameters
- $widgets : array<string|int, mixed>
loadCurrentDashboard()
protected
loadCurrentDashboard(BackendUserAuthentication $user) : string
Parameters
- $user : BackendUserAuthentication
Return values
stringsaveCurrentDashboard()
protected
saveCurrentDashboard(BackendUserAuthentication $user, string $identifier) : void
Parameters
- $user : BackendUserAuthentication
- $identifier : string