IWidgetsService

interface OCP\Dashboard\Service\IWidgetsService
Interface IWidgetsService
The Service is provided by the Dashboard app. The method in this interface
are used by the IDashboardManager when a widget needs to access the current
configuration of a widget for a user.
Source:lib/public/Dashboard/Service/IWidgetsService.php#43

Methods

public OCP\Dashboard\Service\IWidgetsService::getWidgetConfig($widgetId, $userId)
Returns the IWidgetConfig for a widgetId and userId
Source:

lib/public/Dashboard/Service/IWidgetsService.php#56

Parameters:
  • $widgetId (string)
  • $userId (string)
Since:

15.0.0

Deprecated:

20.0.0

Returns:

\OCP\Dashboard\Model\IWidgetConfig