Merge pull request #2904 from arzola/patch-event-doc

Update Report widget event-extensibility docblock
This commit is contained in:
Samuel Georges 2017-06-06 20:22:54 +10:00 committed by GitHub
commit 305f962e1f
1 changed files with 14 additions and 2 deletions

View File

@ -189,8 +189,20 @@ class WidgetManager
}
}
/*
* Extensibility
/**
* @event system.reportwidgets.extendItems
* Allows to append or remove a report widget.
*
* You will have access to the WidgetManager instance and be able to call the appropiated methods
* $manager->registerReportWidget();
* $manager->removeReportWidget();
*
* Example usage:
*
* Event::listen('system.reportwidgets.extendItems', function($manager) {
* $manager->removeReportWidget('Acme\ReportWidgets\YourWidget');
* });
*
*/
Event::fire('system.reportwidgets.extendItems', [$this]);