Manual:Hooks/DifferenceEngineViewHeader
DifferenceEngineViewHeader | |
---|---|
Available from version 1.35.0 (Gerrit change 606429) Called before displaying a diff | |
Define function: | public static function onDifferenceEngineViewHeader( DifferenceEngine $differenceEngine ) { ... }
|
Attach hook: | In extension.json:
{
"Hooks": {
"DifferenceEngineViewHeader": "MediaWiki\\Extension\\MyExtension\\Hooks::onDifferenceEngineViewHeader"
}
}
|
Called from: | File(s): diff/DifferenceEngine.php Function(s): showDiffPage |
Interface: | DifferenceEngineViewHeaderHook.php |
For more information about attaching hooks, see Manual:Hooks .
For examples of extensions using this hook, see Category:DifferenceEngineViewHeader extensions.
Details
edit- $differenceEngine: A DifferenceEngine object