Movatterモバイル変換


[0]ホーム

URL:


Jump to content
MediaWiki
Search

Manual:Hooks/ParserAfterParse

From mediawiki.org
<Manual:Hooks
ParserAfterParse
Available fromversion 1.20.0
Called from Parser::parse() just after the call to Parser::internalParse() returns.
Define function:
publicstaticfunctiononParserAfterParse(Parser$parser,&$text,StripState$stripState){...}
Attach hook:Inextension.json:
{"Hooks":{"ParserAfterParse":"MediaWiki\\Extension\\MyExtension\\Hooks::onParserAfterParse"}}
Called from:File(s):parser/Parser.php
Interface:ParserAfterParseHook.php

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


Details

[edit]
  • $parser: parser object
  • &$text: text being parsed
  • $stripState: stripState used (object)
Retrieved from "https://www.mediawiki.org/w/index.php?title=Manual:Hooks/ParserAfterParse&oldid=4440992"
Categories:

[8]ページ先頭

©2009-2025 Movatter.jp