mirror of
https://github.com/pluginsGLPI/example.git
synced 2025-06-28 06:58:43 +02:00
Example for the new dashboard filters hooks
This commit is contained in:

committed by
GitHub

parent
99ccf29a7e
commit
4899ba4968
@ -34,6 +34,7 @@ use GlpiPlugin\Example\Config;
|
||||
use GlpiPlugin\Example\Dropdown;
|
||||
use GlpiPlugin\Example\DeviceCamera;
|
||||
use GlpiPlugin\Example\Example;
|
||||
use GlpiPlugin\Example\Filters\ComputerModelFilter;
|
||||
use GlpiPlugin\Example\ItemForm;
|
||||
use GlpiPlugin\Example\RuleTestCollection;
|
||||
use GlpiPlugin\Example\Showtabitem;
|
||||
@ -232,6 +233,11 @@ function plugin_init_example() {
|
||||
// add new cards to dashboard grid
|
||||
$PLUGIN_HOOKS['dashboard_types']['example'] = [Example::class, 'dashboardTypes'];
|
||||
$PLUGIN_HOOKS['dashboard_cards']['example'] = [Example::class, 'dashboardCards'];
|
||||
|
||||
// Dashboard filter
|
||||
$PLUGIN_HOOKS[Hooks::DASHBOARD_FILTERS]['example'] = [
|
||||
ComputerModelFilter::class
|
||||
];
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user