3 namespace MediaWiki\Content\Hook
;
5 use MediaWiki\Content\ContentHandler
;
6 use MediaWiki\Context\IContextSource
;
10 * This is a hook handler interface, see docs/Hooks.md.
11 * Use the hook name "GetSlotDiffRenderer" to register handlers implementing this interface.
13 * @stable to implement
16 interface GetSlotDiffRendererHook
{
18 * Use this hook to replace or wrap the standard SlotDiffRenderer for some content type.
22 * @param ContentHandler $contentHandler ContentHandler for which the slot diff renderer is fetched
23 * @param SlotDiffRenderer &$slotDiffRenderer SlotDiffRenderer to change or replace
24 * @param IContextSource $context
25 * @return bool|void True or no return value to continue or false to abort
27 public function onGetSlotDiffRenderer( $contentHandler, &$slotDiffRenderer,