MediaWiki REL1_35
|
Stable to implement. More...
Public Member Functions | |
onGetDifferenceEngine ( $context, $old, $new, $refreshCache, $unhide, &$differenceEngine) | |
This hook is called when getting a new difference engine interface object. | |
Stable to implement.
Definition at line 12 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.