MediaWiki REL1_39
MediaWiki\Content\Hook\GetSlotDiffRendererHook Interface Reference

This is a hook handler interface, see docs/Hooks.md. More...

Inheritance diagram for MediaWiki\Content\Hook\GetSlotDiffRendererHook:

Public Member Functions

 onGetSlotDiffRenderer ( $contentHandler, &$slotDiffRenderer, $context)
 Use this hook to replace or wrap the standard SlotDiffRenderer for some content type.
 

Detailed Description

This is a hook handler interface, see docs/Hooks.md.

Use the hook name "GetSlotDiffRenderer" to register handlers implementing this interface.

Stability: stable
to implement

Definition at line 16 of file GetSlotDiffRendererHook.php.

Member Function Documentation

◆ onGetSlotDiffRenderer()

MediaWiki\Content\Hook\GetSlotDiffRendererHook::onGetSlotDiffRenderer ( $contentHandler,
& $slotDiffRenderer,
$context )

Use this hook to replace or wrap the standard SlotDiffRenderer for some content type.

Since
1.35
Parameters
ContentHandler$contentHandlerContentHandler for which the slot diff renderer is fetched
SlotDiffRenderer&$slotDiffRendererSlotDiffRenderer to change or replace
IContextSource$context
Returns
bool|void True or no return value to continue or false to abort

Implemented in MediaWiki\HookContainer\HookRunner.


The documentation for this interface was generated from the following file: