Edited doc comments for hook interfaces to improve consistency and add type hints. Bug: T246855 Change-Id: I38fa802463cd6f39bf5946dbbeb1b3ebaea604b2
27 lines
712 B
PHP
27 lines
712 B
PHP
<?php
|
|
|
|
namespace MediaWiki\Content\Hook;
|
|
|
|
use ContentHandler;
|
|
use IContextSource;
|
|
use SlotDiffRenderer;
|
|
|
|
/**
|
|
* @stable for implementation
|
|
* @ingroup Hooks
|
|
*/
|
|
interface GetSlotDiffRendererHook {
|
|
/**
|
|
* Use this hook to replace or wrap the standard SlotDiffRenderer for some content type.
|
|
*
|
|
* @since 1.35
|
|
*
|
|
* @param ContentHandler $contentHandler ContentHandler for which the slot diff renderer is fetched
|
|
* @param SlotDiffRenderer &$slotDiffRenderer SlotDiffRenderer to change or replace
|
|
* @param IContextSource $context
|
|
* @return bool|void True or no return value to continue or false to abort
|
|
*/
|
|
public function onGetSlotDiffRenderer( $contentHandler, &$slotDiffRenderer,
|
|
$context
|
|
);
|
|
}
|