Add an example for Hooks::SET_ITEM_IMPACT_ICON

This commit is contained in:
Cédric Anne
2024-07-01 16:38:26 +02:00
parent 3e3ba0128f
commit 115c355eb2
3 changed files with 19 additions and 0 deletions

View File

@ -258,6 +258,9 @@ function plugin_init_example() {
$PLUGIN_HOOKS[Hooks::DASHBOARD_FILTERS]['example'] = [
ComputerModelFilter::class
];
// Icon in the impact analysis
$PLUGIN_HOOKS[Hooks::SET_ITEM_IMPACT_ICON]['example'] = 'plugin_example_set_impact_icon';
}