Allow registering callback functions for the debug console
From Joomla! Documentation
Joomla!
3.7
Allowing extensions to register a callable function to be triggered when the debug console is rendered. This gives a hook to allow extensions to add data to the console.
API Methods[edit]
- PlgSystemDebug::addDisplayCallback() which takes two parameters:
- $name is the name of the callable function, it's used as an identifier for the various markup elements and to create the language key to translate the title
- $callable is a valid callable function (anything which passes PHP 5.4's callable typehint or the is_callable() method will suffice here)
- PlgSystemDebug::removeDisplayCallback() which takes one parameter:
- $name is the name of the callable function to be removed