Localisation updates from https://translatewiki.net.
[mediawiki.git] / includes / content / Hook / GetSlotDiffRendererHook.php
blob3f1c913668a0bde42ca156e99a5c14587774976f
1 <?php
3 namespace MediaWiki\Content\Hook;
5 use MediaWiki\Content\ContentHandler;
6 use MediaWiki\Context\IContextSource;
7 use SlotDiffRenderer;
9 /**
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
14 * @ingroup Hooks
16 interface GetSlotDiffRendererHook {
17 /**
18 * Use this hook to replace or wrap the standard SlotDiffRenderer for some content type.
20 * @since 1.35
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,
28 $context