MediaWiki
REL1_40
GetSlotDiffRendererHook.php
Go to the documentation of this file.
1
<?php
2
3
namespace
MediaWiki\Content\Hook
;
4
5
use
ContentHandler
;
6
use
IContextSource
;
7
use
SlotDiffRenderer
;
8
16
interface
GetSlotDiffRendererHook
{
27
public
function
onGetSlotDiffRenderer
( $contentHandler, &$slotDiffRenderer,
28
$context
29
);
30
}
ContentHandler
A content handler knows how do deal with a specific type of content on a wiki page.
Definition
ContentHandler.php:69
SlotDiffRenderer
Renders a diff for a single slot (that is, a diff between two content objects).
Definition
SlotDiffRenderer.php:40
IContextSource
Interface for objects which can provide a MediaWiki context on request.
Definition
IContextSource.php:60
MediaWiki\Content\Hook\GetSlotDiffRendererHook
This is a hook handler interface, see docs/Hooks.md.
Definition
GetSlotDiffRendererHook.php:16
MediaWiki\Content\Hook\GetSlotDiffRendererHook\onGetSlotDiffRenderer
onGetSlotDiffRenderer( $contentHandler, &$slotDiffRenderer, $context)
Use this hook to replace or wrap the standard SlotDiffRenderer for some content type.
MediaWiki\Content\Hook
Definition
ContentAlterParserOutputHook.php:3
includes
content
Hook
GetSlotDiffRendererHook.php
Generated on Thu Jun 27 2024 14:02:32 for MediaWiki by
1.10.0