Movatterモバイル変換


[0]ホーム

URL:


Jump to content
MediaWiki
Search

Manual:Hooks/ApiQuery::moduleManager

From mediawiki.org
<Manual:Hooks
ApiQuery::moduleManager
Available fromversion 1.25.0 (Gerrit change 190140)
Called when ApiQuery has finished initializing its module manager
Define function:
publicstaticfunctiononApiQuery_moduleManager(ApiModuleManager$moduleManager){...}
Attach hook:Inextension.json:
{"Hooks":{"ApiQuery::moduleManager":"MediaWiki\\Extension\\MyExtension\\Hooks::onApiQuerymoduleManager"}}
Called from:File(s):api/ApiQuery.php
Interface:ApiQuery__moduleManagerHook.php

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


Can be used to conditionally register API query modules.

Details

[edit]
  • $moduleManager: ApiModuleManager instance
Retrieved from "https://www.mediawiki.org/w/index.php?title=Manual:Hooks/ApiQuery::moduleManager&oldid=4442190"
Categories:

[8]ページ先頭

©2009-2025 Movatter.jp