J3.x

Allow registering callback functions for the debug console

From Joomla! Documentation

Revision as of 12:45, 11 March 2017 by Sandra97 (talk | contribs) (Created page with "<noinclude>{{Joomla version|version=3.7}}</noinclude> Allowing extensions to register a callable function to be triggered when the debug console is rendered. This gives a hoo...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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