MediaWiki REL1_37
|
This is a hook handler interface, see docs/Hooks.md. More...
Public Member Functions | |
onGetDifferenceEngine ( $context, $old, $new, $refreshCache, $unhide, &$differenceEngine) | |
This hook is called when getting a new difference engine interface object. | |
This is a hook handler interface, see docs/Hooks.md.
Use the hook name "GetDifferenceEngine" to register handlers implementing this interface.
Definition at line 15 of file GetDifferenceEngineHook.php.
MediaWiki\Content\Hook\GetDifferenceEngineHook::onGetDifferenceEngine | ( | $context, | |
$old, | |||
$new, | |||
$refreshCache, | |||
$unhide, | |||
& | $differenceEngine | ||
) |
This hook is called when getting a new difference engine interface object.
Use this hook to decorate or replace the default difference engine.
IContextSource | $context | IContextSource context to be used for diff |
int | $old | Revision ID to show and diff with |
int | string | $new | Either a revision ID or one of the strings 'cur', 'prev' or 'next' |
bool | $refreshCache | If set, refreshes the diff cache |
bool | $unhide | If set, allow viewing deleted revs |
DifferenceEngine | &$differenceEngine | Difference engine object to be used for the diff |
Implemented in MediaWiki\HookContainer\HookRunner.