MediaWiki  master
MediaWiki\Content\Hook\GetDifferenceEngineHook Interface Reference

Stable to implement. More...

Inheritance diagram for MediaWiki\Content\Hook\GetDifferenceEngineHook:

Public Member Functions

 onGetDifferenceEngine ( $context, $old, $new, $refreshCache, $unhide, &$differenceEngine)
 This hook is called when getting a new difference engine interface object. More...
 

Detailed Description

Stable to implement.

Definition at line 12 of file GetDifferenceEngineHook.php.

Member Function Documentation

◆ onGetDifferenceEngine()

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.

Since
1.35
Parameters
IContextSource$contextIContextSource context to be used for diff
int$oldRevision ID to show and diff with
int | string$newEither a revision ID or one of the strings 'cur', 'prev' or 'next'
bool$refreshCacheIf set, refreshes the diff cache
bool$unhideIf set, allow viewing deleted revs
DifferenceEngine&$differenceEngineDifference engine object to be used for the diff
Returns
bool|void True or no return value to continue or false to abort

Implemented in MediaWiki\HookContainer\HookRunner.


The documentation for this interface was generated from the following file: