Movatterモバイル変換


[0]ホーム

URL:


Jump to content
MediaWiki
Search

Manual:Hooks/ApiParseMakeOutputPage

From mediawiki.org
<Manual:Hooks
ApiParseMakeOutputPage
Available fromversion 1.32.0 (Gerrit change 340768)
Called when preparing the OutputPage object for ApiParse. This is mainly intended for callingOutputPage::addContentOverride() orOutputPage::addContentOverrideCallback().
Define function:
publicstaticfunctiononApiParseMakeOutputPage(ApiBase$module,OutputPage$output){...}
Attach hook:Inextension.json:
{"Hooks":{"ApiParseMakeOutputPage":"MediaWiki\\Extension\\MyExtension\\Hooks::onApiParseMakeOutputPage"}}
Called from:File(s):api/ApiParse.php
Function(s):execute
Interface:ApiParseMakeOutputPageHook.php

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


Details

[edit]
  • $module: ApiBase (which is also a ContextSource)
  • $output: OutputPage
Retrieved from "https://www.mediawiki.org/w/index.php?title=Manual:Hooks/ApiParseMakeOutputPage&oldid=4442231"
Categories:

[8]ページ先頭

©2009-2025 Movatter.jp