MediaWiki REL1_37
|
This is a hook handler interface, see docs/Hooks.md. More...
Public Member Functions | |
onDifferenceEngineOldHeader ( $differenceEngine, &$oldHeader, $prevlink, $oldminor, $diffOnly, $ldel, $unhide) | |
Use this hook to change the $oldHeader variable, which contains information about the old revision, such as the revision's author, whether the revision was marked as a minor edit or not, etc. | |
This is a hook handler interface, see docs/Hooks.md.
Use the hook name "DifferenceEngineOldHeader" to register handlers implementing this interface.
Definition at line 14 of file DifferenceEngineOldHeaderHook.php.
MediaWiki\Diff\Hook\DifferenceEngineOldHeaderHook::onDifferenceEngineOldHeader | ( | $differenceEngine, | |
& | $oldHeader, | ||
$prevlink, | |||
$oldminor, | |||
$diffOnly, | |||
$ldel, | |||
$unhide | |||
) |
Use this hook to change the $oldHeader variable, which contains information about the old revision, such as the revision's author, whether the revision was marked as a minor edit or not, etc.
DifferenceEngine | $differenceEngine | |
string | &$oldHeader | String containing the various #mw-diff-otitle[1-5] divs, which include things like revision author info, revision comment, RevisionDelete link and more |
string | $prevlink | String containing the link to the previous revision (if any); also included in $oldHeader |
string | $oldminor | String indicating if the old revision was marked as a minor edit |
bool | $diffOnly | Boolean parameter passed to DifferenceEngine::showDiffPage, indicating whether we should show just the diff; passed in as a query string parameter to the various URLs constructed here (i.e. $prevlink) |
string | $ldel | RevisionDelete link for the old revision, if the current user is allowed to use the RevisionDelete feature |
bool | $unhide | Boolean parameter indicating whether to show RevisionDeleted revisions |
Implemented in MediaWiki\HookContainer\HookRunner.