Skip to content

Commit

Permalink
Document debug_tabs hook
Browse files Browse the repository at this point in the history
  • Loading branch information
cconard96 authored and trasher committed Mar 28, 2022
1 parent d8ddb69 commit aad1a24
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions source/plugins/hooks.rst
Original file line number Diff line number Diff line change
Expand Up @@ -341,6 +341,20 @@ Hooks that cannot be classified in above categories :)
<?php
$PLUGIN_HOOKS['helpdesk_menu_entry_icon']['example'] = 'fas fa-tools';
``debug_tabs``
Add one or more new tabs to the GLPI debug panel.
Each tab must define a `title` and `display_callable` which is what will be called to print the tab contents.

.. code-block:: php
<?php
$PLUGIN_HOOKS['debug_tabs']['example'] = [
[
'title' => 'ExampleTab',
'display_callable' => 'ExampleClass::displayDebugTab'
]
];
Items business related
++++++++++++++++++++++

Expand Down

0 comments on commit aad1a24

Please sign in to comment.