Movatterモバイル変換


[0]ホーム

URL:


Jump to content
MediaWiki
Search

Manual:Hooks/ApiQueryCheckCanExecute

From mediawiki.org
<Manual:Hooks
ApiQueryCheckCanExecute
Available fromversion 1.44.0 (Gerrit change 1100198)
called during the beginning ofApiQuery::execute()
Define function:
publicstaticfunctiononApiQueryCheckCanExecute(array$modules,MediaWiki\Permissions\Authority$authority,MessageSpecifier|string|array&$message){...}
Attach hook:Inextension.json:
{"Hooks":{"ApiQueryCheckCanExecute":"MediaWiki\\Extension\\MyExtension\\Hooks::onApiQueryCheckCanExecute"}}
Called from:File(s):api/ApiQuery.php
Interface:ApiQueryCheckCanExecuteHook.php

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


This hook can be used to prevent execution of query submodules.

Retrieved from "https://www.mediawiki.org/w/index.php?title=Manual:Hooks/ApiQueryCheckCanExecute&oldid=7662947"
Categories:

[8]ページ先頭

©2009-2025 Movatter.jp