MediaWiki  master
MediaWiki\Diff\Hook\DiffViewHeaderHook Interface Reference

This is a hook handler interface, see docs/Hooks.md. More...

Inheritance diagram for MediaWiki\Diff\Hook\DiffViewHeaderHook:

Public Member Functions

 onDiffViewHeader ( $diff, $oldRev, $newRev)
 This hook is called before diff display. More...
 

Detailed Description

This is a hook handler interface, see docs/Hooks.md.

Use the hook name "DiffViewHeader" to register handlers implementing this interface.

Deprecated:
since 1.35, use DifferenceEngineViewHeader

Definition at line 15 of file DiffViewHeaderHook.php.

Member Function Documentation

◆ onDiffViewHeader()

MediaWiki\Diff\Hook\DiffViewHeaderHook::onDiffViewHeader (   $diff,
  $oldRev,
  $newRev 
)

This hook is called before diff display.

Since
1.35
Parameters
DifferenceEngine$diff
Revision | null$oldRevOld revision (may be null/invalid)
Revision$newRevNew revision
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: