Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
n/a
0 / 0
n/a
0 / 0
CRAP
n/a
0 / 0
1<?php
2
3namespace MediaWiki\Content\Hook;
4
5use ContentHandler;
6use MediaWiki\Context\IContextSource;
7use SlotDiffRenderer;
8
9/**
10 * This is a hook handler interface, see docs/Hooks.md.
11 * Use the hook name "GetSlotDiffRenderer" to register handlers implementing this interface.
12 *
13 * @stable to implement
14 * @ingroup Hooks
15 */
16interface GetSlotDiffRendererHook {
17    /**
18     * Use this hook to replace or wrap the standard SlotDiffRenderer for some content type.
19     *
20     * @since 1.35
21     *
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
26     */
27    public function onGetSlotDiffRenderer( $contentHandler, &$slotDiffRenderer,
28        $context
29    );
30}