Movatterモバイル変換


[0]ホーム

URL:


Jump to content
MediaWiki
Search

Manual:Hooks/ApiBeforeMain

From mediawiki.org
<Manual:Hooks
ApiBeforeMain
Available fromversion 1.23.0 (Gerrit change 100996)
Occurs before ApiMain's execute is called to process the request.
Define function:
publicstaticfunctiononApiBeforeMain(&$main){...}
Attach hook:Inextension.json:
{"Hooks":{"ApiBeforeMain":"MediaWiki\\Extension\\MyExtension\\Hooks::onApiBeforeMain"}}
Called from:File(s):../api.php
Interface:ApiBeforeMainHook.php

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


Details

[edit]
  • &$main: ApiMain being used for request

See also

[edit]
Retrieved from "https://www.mediawiki.org/w/index.php?title=Manual:Hooks/ApiBeforeMain&oldid=4441026"
Categories:

[8]ページ先頭

©2009-2025 Movatter.jp