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