| ApiQueryCheckCanExecute | |
|---|---|
| Available fromversion 1.44.0 (Gerrit change 1100198) called during the beginning of ApiQuery::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.