Manual:Hooks/DifferenceEngineShowDiffPage

From MediaWiki.org
Jump to navigation Jump to search
DifferenceEngineShowDiffPage
Available from version 1.29.0 (Gerrit change 298026)
Add additional output via the available OutputPage object into the diff view
Define function:
public static function onDifferenceEngineShowDiffPage( $out ) { ... }
Attach hook:

In extension.json:

{
	"Hooks": {
		"DifferenceEngineShowDiffPage": "MyExtensionHooks::onDifferenceEngineShowDiffPage"
	}
}

For MediaWiki ≤1.25:

$wgHooks['DifferenceEngineShowDiffPage'][] = 'MyExtensionHooks::onDifferenceEngineShowDiffPage';
Called from:File(s): DifferenceEngine.php
Function(s): showDiffPage

For more information about attaching hooks, see Manual:Hooks.
For examples of extensions using this hook, see Category:DifferenceEngineShowDiffPage extensions.

Details[edit]

  • $out: OutputPage object