MediaWiki
REL1_35
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
13
interface
GetSlotDiffRendererHook
{
24
public
function
onGetSlotDiffRenderer
( $contentHandler, &$slotDiffRenderer,
25
$context
26
);
27
}
ContentHandler
A content handler knows how do deal with a specific type of content on a wiki page.
Definition
ContentHandler.php:59
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:55
MediaWiki\Content\Hook\GetSlotDiffRendererHook
Stable to implement.
Definition
GetSlotDiffRendererHook.php:13
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 Sat Apr 6 2024 00:07:02 for MediaWiki by
1.9.8