RegisterWidgetEvent
extends Event
in package
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
Tags
Table of Contents
- $manager : mixed
- __construct() : mixed
- Compatibility constructor
- registerWidget() : mixed
Properties
$manager
private
mixed
$manager
Methods
__construct()
Compatibility constructor
public
__construct(IManager $manager) : mixed
In Nextcloud 17.0.0 this event class used a now deprecated/removed Symfony base class that had a constructor (with default arguments). To lower the risk of a breaking change (PHP won't allow parent constructor calls if there is none), this empty constructor's only purpose is to hopefully not break existing sub- classes of this class.
Parameters
- $manager : IManager
Return values
mixed —registerWidget()
public
registerWidget(string $panelClass) : mixed
Parameters
- $panelClass : string