Manual:Hooks/GetSlotDiffRenderer
GetSlotDiffRenderer | |
---|---|
Available from version 1.32.0 (Gerrit change 445200) Replace or wrap the standard SlotDiffRenderer for some content type. | |
Define function: | public static function onGetSlotDiffRenderer( ContentHandler $contentHandler, &$slotDiffRenderer, IContextSource &$context ) { ... }
|
Attach hook: | In extension.json:
{
"Hooks": {
"GetSlotDiffRenderer": "MediaWiki\\Extension\\MyExtension\\Hooks::onGetSlotDiffRenderer"
}
}
|
Called from: | File(s): content/ContentHandler.php Function(s): getSlotDiffRenderer |
Interface: | GetSlotDiffRendererHook.php |
For more information about attaching hooks, see Manual:Hooks .
For examples of extensions using this hook, see Category:GetSlotDiffRenderer extensions.
Details
edit$contentHandler
: ContentHandler for which the slot diff renderer is fetched.&$slotDiffRenderer
: SlotDiffRenderer to change or replace.$context
: IContextSource