wiki.techinc.nl/includes/diff/Hook/TextSlotDiffRendererTablePrefixHook.php
James D. Forrester 4bae64d1c7 Namespace includes/context
Bug: T353458
Change-Id: I4dbef138fd0110c14c70214282519189d70c94fb
2024-02-08 11:07:01 -05:00

33 lines
960 B
PHP

<?php
namespace MediaWiki\Diff\Hook;
use MediaWiki\Context\IContextSource;
use TextSlotDiffRenderer;
/**
* This is a hook handler interface, see docs/Hooks.md.
* Use the hook name "TextSlotDiffRendererTablePrefix" to register handlers implementing this interface.
*
* @stable to implement
* @ingroup Hooks
*/
interface TextSlotDiffRendererTablePrefixHook {
/**
* Use this hook to change the HTML that is included in a prefix container directly before the diff table.
*
* @since 1.41
*
* @param TextSlotDiffRenderer $textSlotDiffRenderer
* @param IContextSource $context
* @param (string|null)[] &$parts HTML strings to add to a container above the diff table.
* Will be sorted by key before being output.
* @return bool|void True or no return value to continue or false to abort
*/
public function onTextSlotDiffRendererTablePrefix(
TextSlotDiffRenderer $textSlotDiffRenderer,
IContextSource $context,
array &$parts
);
}