MediaWiki master
MediaWiki\Hook\EditPageBeforeConflictDiffHook Interface Reference

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

Inherited by MediaWiki\HookContainer\HookRunner.

Public Member Functions

 onEditPageBeforeConflictDiff ( $editor, $out)
 Use this hook to modify the EditPage object and output when there's an edit conflict.
 

Detailed Description

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

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

Stability: stable
to implement

Definition at line 15 of file EditPageBeforeConflictDiffHook.php.

Member Function Documentation

◆ onEditPageBeforeConflictDiff()

MediaWiki\Hook\EditPageBeforeConflictDiffHook::onEditPageBeforeConflictDiff ( $editor,
$out )

Use this hook to modify the EditPage object and output when there's an edit conflict.

Since
1.35
Parameters
EditPage$editor
OutputPage$out
Returns
bool|void True or no return value to continue. False to halt normal diff output; in this case you're responsible for computing and outputting the entire "conflict" part, i.e., the "difference between revisions" and "your text" headers and sections.

Implemented in MediaWiki\HookContainer\HookRunner.


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