Movatterモバイル変換


[0]ホーム

URL:


Jump to content
MediaWiki
Search

Manual:Hooks/ParserOutputStashForEdit

From mediawiki.org
<Manual:Hooks
ParserOutputStashForEdit
Available fromversion 1.27.0 (Gerrit change 266644)
Called when an edit stash parse finishes, before the output is cached.
Define function:
publicstaticfunctiononParserOutputStashForEdit(WikiPage$page,Content$content,ParserOutput$output,string$summary,User$user){...}
Attach hook:Inextension.json:
{"Hooks":{"ParserOutputStashForEdit":"MediaWiki\\Extension\\MyExtension\\Hooks::onParserOutputStashForEdit"}}
Called from:File(s):Storage/PageEditStash.php
Function(s):parseAndCache
Interface:ParserOutputStashForEditHook.php

For more information about attaching hooks, seeManual:Hooks.
For examples of extensions using this hook, seeCategory:ParserOutputStashForEdit extensions.


Details

[edit]
  • $page: the WikiPage of the candidate edit
  • $content: the Content object of the candidate edit
  • $output: the ParserOutput result of the candidate edit
  • $summary: the change summary of the candidate edit
  • $user: the User considering the edit
Retrieved from "https://www.mediawiki.org/w/index.php?title=Manual:Hooks/ParserOutputStashForEdit&oldid=3293781"
Categories:

[8]ページ先頭

©2009-2025 Movatter.jp