Added getReportWidgets() method (#4525)

Credit to @DanHarrin
This commit is contained in:
Dan Harrin 2019-08-15 16:36:15 +01:00 committed by Luke Towers
parent 9521dd795c
commit f7539b2c32
1 changed files with 10 additions and 0 deletions

View File

@ -2,6 +2,7 @@
use Str;
use BackendAuth;
use SystemException;
use System\Classes\PluginManager;
use Event;
@ -218,6 +219,15 @@ class WidgetManager
return $this->reportWidgets;
}
/**
* Returns the raw array of registered report widgets.
* @return array Array keys are class names.
*/
public function getReportWidgets()
{
return $this->reportWidgets;
}
/*
* Registers a single report widget.
*/