Handbuch:$wgParserOutputHooks

This page is a translated version of the page Manual:$wgParserOutputHooks and the translation is 38% complete.
Erweiterungen: $wgParserOutputHooks
Parser output hooks.
Eingeführt in Version:1.11.0
Veraltet in Version:1.38.0 (Gerrit change 760994; git #773801e4)
Entfernt in Version:1.41.0 (Gerrit change 942499; git #d421ab57)
Erlaubte Werte:(Array)
Standardwert:[]

Details

This is an associative array where the key is an extension-defined tag (typically the extension name), and the value is a PHP callback. These will be called as an OutputPageParserOutput hook, if the relevant tag has been registered with the parser output object.

Registration is done with

$pout->addOutputHook( $tag, $data );

The callback has the form:

function outputHook( $outputPage, $parserOutput, $data ) { 
  /*...*/
}