RegisterWidgetEvent

class OCP\Dashboard\RegisterWidgetEvent
Class RegisterPanelEvent
This event is dispatched to allow apps supporting older Nextcloud versions to
still register their dashboard panels so that they are only constructed when
they are needed. Deprecated right away so we can drop it again after 19 is EOL
and backward compatible apps can use OCP\AppFramework\Bootstrap\IBootstrap
Source:lib/public/Dashboard/RegisterWidgetEvent.php#42
Parent:OCP\EventDispatcher\Event

Properties

Methods

public OCP\Dashboard\RegisterWidgetEvent::__construct($manager)
Source:lib/public/Dashboard/RegisterWidgetEvent.php#45
public OCP\Dashboard\RegisterWidgetEvent::registerWidget($panelClass)
Source:

lib/public/Dashboard/RegisterWidgetEvent.php#55

Parameters:
  • $panelClass (string)
Since:

20.0.0