MediaWiki  master
MediaWiki\Storage\Hook\ParserOutputStashForEditHook Interface Reference

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

Inheritance diagram for MediaWiki\Storage\Hook\ParserOutputStashForEditHook:

Public Member Functions

 onParserOutputStashForEdit ( $page, $content, $output, $summary, $user)
 This hook is called when an edit stash parse finishes, before the output is cached. More...
 

Detailed Description

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

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

Stable to implement

Definition at line 17 of file ParserOutputStashForEditHook.php.

Member Function Documentation

◆ onParserOutputStashForEdit()

MediaWiki\Storage\Hook\ParserOutputStashForEditHook::onParserOutputStashForEdit (   $page,
  $content,
  $output,
  $summary,
  $user 
)

This hook is called when an edit stash parse finishes, before the output is cached.

Since
1.35
Parameters
WikiPage$pageWikiPage of the candidate edit
Content$contentContent object of the candidate edit
ParserOutput$outputParserOutput result of the candidate edit
string$summaryChange summary of the candidate edit
User$userUser considering the edit
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: