< Manual:Hooks 
 
      | 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": "MyExtensionHooks::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
- $contentHandler: ContentHandler for which the slot diff renderer is fetched.
- &$slotDiffRenderer: SlotDiffRenderer to change or replace.
- $context: IContextSource
    This article is issued from Mediawiki. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.